From b165d27cb95e764f119a0a212ec16a36f7b3281c Mon Sep 17 00:00:00 2001 From: dedeibel Date: Sat, 22 Dec 2018 14:16:39 +0100 Subject: Less.php fix php version problem with strpos wanting a string and nonempty needle value --- lib/less.php/Less.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/less.php') diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php index ea69243..44cdffc 100644 --- a/lib/less.php/Less.php +++ b/lib/less.php/Less.php @@ -10331,7 +10331,7 @@ class Less_SourceMap_Generator extends Less_Configurable { $basePath = $this->getOption('sourceMapBasepath'); // "Trim" the 'sourceMapBasepath' from the output filename. - if (strpos($filename, $basePath) === 0) { + if (! empty($basePath) && strpos($filename, (string) $basePath) === 0) { $filename = substr($filename, strlen($basePath)); } -- cgit v1.2.3