aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-03-01 16:18:07 +0000
committerMario <mario@mariovavti.com>2024-03-01 16:18:07 +0000
commit80ed2ff89a1c8ec3e59336a913a05d9c0de3c0a3 (patch)
tree2a546e371dc9e4056d1e7499fa02b456ab9d6b86 /include/network.php
parent291e12574aeb3b71200b23d8ffc630a36f170008 (diff)
downloadvolse-hubzilla-80ed2ff89a1c8ec3e59336a913a05d9c0de3c0a3.tar.gz
volse-hubzilla-80ed2ff89a1c8ec3e59336a913a05d9c0de3c0a3.tar.bz2
volse-hubzilla-80ed2ff89a1c8ec3e59336a913a05d9c0de3c0a3.zip
Add some beginning tests for bbcode, and a bit of refactoring
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'] : '';