1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 03:54:09 +02:00

A proper handling of RFC3986 network-path references

This commit is contained in:
SecretR
2016-01-15 13:50:41 +02:00
parent d29949cbd3
commit a609a899cc
2 changed files with 10 additions and 5 deletions

View File

@@ -2684,8 +2684,15 @@ class e_parse extends e_parser
break;
}
$hasCDN = strpos($url, '//') === 0;
foreach($tmp as $key=>$val)
{
// Fix - don't break the CDN '//cdn.com' URLs
if ($hasCDN && $val == '/') {
continue;
}
$len = strlen($val);
if(substr($url, 0, $len) == $val)
{