1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-13 17:44:00 +02:00

Revert "simplify substr third param"

This reverts commit 5659799c42.

the change actually broken MinifyImportProcessorTest
This commit is contained in:
Elan Ruusamäe
2018-01-05 19:13:09 +02:00
parent b97a1db01d
commit 258e495451

View File

@@ -135,7 +135,7 @@ class Minify_ImportProcessor
// $m[1] is either quoted or not
$quote = ($m[1][0] === "'" || $m[1][0] === '"') ? $m[1][0] : '';
$url = ($quote === '') ? $m[1] : substr($m[1], 1, -2);
$url = ($quote === '') ? $m[1] : substr($m[1], 1, strlen($m[1]) - 2);
if ('/' !== $url[0]) {
if (strpos($url, '//') > 0) {