Commit 19d07bcc authored by Renato Goncalves de Araujo's avatar Renato Goncalves de Araujo
Browse files

Fix tests

parent 7381efc5
......@@ -1372,6 +1372,11 @@ function link_validate_url($text, $langcode = NULL) {
* The url to clean up the relative protocol.
*/
function _link_clean_relative($url) {
if ($url[0] == '/' && $url[1] != '/') {
$url = substr($url, 1);
}
$check = substr($url, 0, 2);
if (isset($_SERVER['HTTPS']) &&
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment