aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-01 16:18:07 +0000
committerMario <mario@mariovavti.com>2024-03-01 16:18:07 +0000
commit15a7d2d4de3b81c33e5b2fd75f78f2c79ff46262 (patch)
treeaf9fcd28803bf910b905db55493d42aabaef4af4 /include/network.php
parent37a0343163d13ffeead51fdaa1c8990707b53308 (diff)
parent80ed2ff89a1c8ec3e59336a913a05d9c0de3c0a3 (diff)
downloadvolse-hubzilla-15a7d2d4de3b81c33e5b2fd75f78f2c79ff46262.tar.gz
volse-hubzilla-15a7d2d4de3b81c33e5b2fd75f78f2c79ff46262.tar.bz2
volse-hubzilla-15a7d2d4de3b81c33e5b2fd75f78f2c79ff46262.zip
Merge branch 'some-bbcode-cleanup' into 'dev'
Add some beginning tests for bbcode, and a bit of refactoring See merge request hubzilla/core!2110
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/network.php b/include/network.php
index c5411e702..d41ba198d 100644
--- a/include/network.php
+++ b/include/network.php
@@ -2138,12 +2138,13 @@ function get_request_string($url) {
}
-/*
+/**
+ * Builds a url from the result of `parse_url`.
*
- * Takes the output of parse_url and builds a URL from it
+ * @param array $parsed_url An associative array as produced by `parse_url`.
*
+ * @return The reassembled URL as a string.
*/
-
function unparse_url($parsed_url) {
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';