1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-22 13:42:48 +02:00

Issue 184 fix

This commit is contained in:
Steve Clay
2010-07-08 01:30:12 +00:00
parent a8f8897fbb
commit 15de686195

View File

@@ -110,7 +110,7 @@ class Minify_YUICompressor {
); );
$cmd = self::$javaExecutable . ' -jar ' . escapeshellarg(self::$jarFile) $cmd = self::$javaExecutable . ' -jar ' . escapeshellarg(self::$jarFile)
. " --type {$type}" . " --type {$type}"
. (preg_match('/^[a-zA-Z\\-]+$/', $o['charset']) . (preg_match('/^[a-zA-Z0-9\\-]+$/', $o['charset'])
? " --charset {$o['charset']}" ? " --charset {$o['charset']}"
: '') : '')
. (is_numeric($o['line-break']) && $o['line-break'] >= 0 . (is_numeric($o['line-break']) && $o['line-break'] >= 0