From 5371e4f5110aa34e3f5f15f59b79f1f48868e238 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 17 Sep 2010 08:04:18 +0000 Subject: [PATCH] Fix for r73196: don't use $this->a as a temporary variable, as promised in the commit message. I reverted it for testing and forgot to save after I reverted back. --- includes/libs/JSMin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/libs/JSMin.php b/includes/libs/JSMin.php index 5d8189cb98..84ea757052 100644 --- a/includes/libs/JSMin.php +++ b/includes/libs/JSMin.php @@ -109,18 +109,18 @@ class JSMin { $runLength = strcspn( $this->input, $interestingChars, $this->inputIndex ); $this->output .= substr( $this->input, $this->inputIndex, $runLength ); $this->inputIndex += $runLength; - $this->a = $this->get(); + $c = $this->get(); - if ( $this->a === $this->b ) { + if ( $c === $this->b ) { break; } - if ( $this->a === "\n" || $this->a === null ) { + if ( $c === "\n" || $c === null ) { throw new JSMinException( 'Unterminated string literal.' ); } - if ( $this->a === '\\' ) { - $this->output .= $this->a . $this->get(); + if ( $c === '\\' ) { + $this->output .= $c . $this->get(); } } } -- 2.20.1