We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb6f063 + 68f6057 commit b4d648dCopy full SHA for b4d648d
lib/exe/js.php
@@ -418,7 +418,7 @@ function js_compress($s){
418
// double quote strings
419
if($ch == '"'){
420
$j = 1;
421
- while( $s[$i+$j] != '"' && ($i+$j < $slen)){
+ while( ($i+$j < $slen) && $s[$i+$j] != '"' ){
422
if( $s[$i+$j] == '\\' && ($s[$i+$j+1] == '"' || $s[$i+$j+1] == '\\') ){
423
$j += 2;
424
}else{
@@ -436,7 +436,7 @@ function js_compress($s){
436
// single quote strings
437
if($ch == "'"){
438
439
- while( $s[$i+$j] != "'" && ($i+$j < $slen)){
+ while( ($i+$j < $slen) && $s[$i+$j] != "'" ){
440
if( $s[$i+$j] == '\\' && ($s[$i+$j+1] == "'" || $s[$i+$j+1] == '\\') ){
441
442
0 commit comments