From b8d3e5c105f4e7b0ad377287cd62682aa4a15e1a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 19 Jan 2014 02:27:23 +0100 Subject: [PATCH] - Fixed obfuscation being applied on non-obfuscation mode --- DevTools.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DevTools.php b/DevTools.php index a1ded0a..f82fbb4 100644 --- a/DevTools.php +++ b/DevTools.php @@ -4,7 +4,7 @@ __PocketMine Plugin__ name=Development Tools description=A collection of tools so development for PocketMine-MP is easier -version=0.7 +version=0.7.1 author=PocketMine Team class=DevTools apiversion=11,12 @@ -53,6 +53,9 @@ class=DevTools - API 12 - New obfuscation methods ;) +0.7.1 +- Fixed obfuscation being applied on non-obfuscation mode + */ @@ -293,7 +296,7 @@ private function PMFPlugin(&$output, $className, $data = array(), $obfuscate = f $lastObjectVar = true; break; case T_STRING: - if($lastObjectVar === true){ + if($lastObjectVar === true and $obfuscate === true){ $xorKey = Utils::getRandomBytes(strlen($tag[1]), false); $code .= '{"'.$this->encodeString($tag[1] ^ $xorKey).'"^"'.$this->encodeString($xorKey).'"}'; }else{