mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Add some beginning tests for bbcode, and a bit of refactoring
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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'] : '';
|
||||
|
||||
Reference in New Issue
Block a user