mirror of
https://github.com/mrclay/minify.git
synced 2025-08-19 12:21:20 +02:00
allow .scss via f= param. #549
This commit is contained in:
@@ -102,7 +102,7 @@ class Minify_Controller_MinApp extends Minify_Controller_Base
|
|||||||
// respond to.
|
// respond to.
|
||||||
|
|
||||||
// verify at least one file, files are single comma separated, and are all same extension
|
// verify at least one file, files are single comma separated, and are all same extension
|
||||||
$validPattern = preg_match('/^[^,]+\\.(css|less|js)(?:,[^,]+\\.\\1)*$/', $get['f'], $m);
|
$validPattern = preg_match('/^[^,]+\\.(css|less|scss|js)(?:,[^,]+\\.\\1)*$/', $get['f'], $m);
|
||||||
$hasComment = strpos($get['f'], '//') !== false;
|
$hasComment = strpos($get['f'], '//') !== false;
|
||||||
$hasEscape = strpos($get['f'], '\\') !== false;
|
$hasEscape = strpos($get['f'], '\\') !== false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user