aboutsummaryrefslogtreecommitdiff
path: root/lib/less.php/Less.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/less.php/Less.php2
1 files changed, 1 insertions, 1 deletions
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));
}