1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-19 04:11:20 +02:00

allow .scss via f= param. #549

This commit is contained in:
Elan Ruusamäe
2016-10-17 14:22:30 +03:00
parent 8b965059a1
commit 74042c87ad

View File

@@ -102,7 +102,7 @@ class Minify_Controller_MinApp extends Minify_Controller_Base
// respond to.
// 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;
$hasEscape = strpos($get['f'], '\\') !== false;