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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user