Skip to content

Commit df7c34c

Browse files
committed
Set allowUrlRewrite default to false to be consistent with the
behavior of latest less.js Add setter to define allowUrlRewrite
1 parent de9e44b commit df7c34c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lessc.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class lessc {
5353
public $importDisabled = false;
5454
public $importDir = '';
5555

56-
public $allowUrlRewrite = true; // rewrite urls relative to imported files
56+
public $allowUrlRewrite = false; // rewrite urls relative to imported files
5757
public $baseUrlPath = null;
5858

5959
protected $numberPrecision = null;
@@ -1814,6 +1814,10 @@ public function addImportDir($dir) {
18141814
$this->importDir[] = $dir;
18151815
}
18161816

1817+
public function setAllowUrlRewrite($allowUrlRewrite){
1818+
$this->allowUrlRewrite = (bool)$allowUrlRewrite;
1819+
}
1820+
18171821
public function allParsedFiles() {
18181822
return $this->allParsedFiles;
18191823
}

0 commit comments

Comments
 (0)