mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 21:38:14 +01:00
Merge pull request #158 from barryvdh/patch-13
Fix regex for windows paths + uppercase protocols
This commit is contained in:
commit
4ce1ac0124
@ -595,7 +595,7 @@ class JavascriptRenderer
|
|||||||
return $uris;
|
return $uris;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (substr($uri, 0, 1) === '/' || preg_match('/^([a-z]+:\/\/|[a-zA-Z]:\/)/', $uri)) {
|
if (substr($uri, 0, 1) === '/' || preg_match('/^([a-zA-Z]+:\/\/|[a-zA-Z]:\/|[a-zA-Z]:\\\)/', $uri)) {
|
||||||
return $uri;
|
return $uri;
|
||||||
}
|
}
|
||||||
return rtrim($root, '/') . "/$uri";
|
return rtrim($root, '/') . "/$uri";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user