1
0
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:
Maxime Bouroumeau-Fuseau 2014-09-16 16:21:58 +02:00
commit 4ce1ac0124

View File

@ -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";