From b07880e17a2b986ea76d32d5a22f0c3d8f316523 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Sun, 19 Dec 2010 21:12:53 +0000 Subject: [PATCH] Fix for Issue 211 --- min/lib/Minify/YUICompressor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/min/lib/Minify/YUICompressor.php b/min/lib/Minify/YUICompressor.php index 3e77e96..cd93b0e 100644 --- a/min/lib/Minify/YUICompressor.php +++ b/min/lib/Minify/YUICompressor.php @@ -110,7 +110,7 @@ class Minify_YUICompressor { ); $cmd = self::$javaExecutable . ' -jar ' . escapeshellarg(self::$jarFile) . " --type {$type}" - . (preg_match('/^[a-zA-Z0-9\\-]+$/', $o['charset']) + . (preg_match('/^[\\da-zA-Z0-9\\-]+$/', $o['charset']) ? " --charset {$o['charset']}" : '') . (is_numeric($o['line-break']) && $o['line-break'] >= 0