mirror of
https://github.com/mrclay/minify.git
synced 2025-08-21 13:21:59 +02:00
simplify substr third param
This commit is contained in:
@@ -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, strlen($m[1]) - 2);
|
||||
$url = ($quote === '') ? $m[1] : substr($m[1], 1, -2);
|
||||
|
||||
if ('/' !== $url[0]) {
|
||||
if (strpos($url, '//') > 0) {
|
||||
|
Reference in New Issue
Block a user