From 80ed2ff89a1c8ec3e59336a913a05d9c0de3c0a3 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 1 Mar 2024 16:18:07 +0000 Subject: Add some beginning tests for bbcode, and a bit of refactoring --- include/network.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/network.php') 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'] : ''; -- cgit v1.2.3