summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 9854f1b45..e01ab7bf5 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -290,7 +290,7 @@ function js_compress($s){
if($ch == '"'){
$j = 1;
while( $s{$i+$j} != '"' && ($i+$j < $len)){
- if( $s{$i+$j} == '\\' && $s{$i+$j+1} == '"' ){
+ if( $s{$i+$j} == '\\' && ($s{$i+$j+1} == '"' || $s{$i+$j+1} == '\\') ){
$j += 2;
}else{
$j += 1;
@@ -305,7 +305,7 @@ function js_compress($s){
if($ch == "'"){
$j = 1;
while( $s{$i+$j} != "'" && ($i+$j < $len)){
- if( $s{$i+$j} == '\\' && $s{$i+$j+1} == "'" ){
+ if( $s{$i+$j} == '\\' && ($s{$i+$j+1} == "'" || $s{$i+$j+1} == '\\') ){
$j += 2;
}else{
$j += 1;