Skip to content
This repository was archived by the owner on Jan 9, 2018. It is now read-only.

Commit b8d3e5c

Browse files
committed
- Fixed obfuscation being applied on non-obfuscation mode
1 parent 120b0b4 commit b8d3e5c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

DevTools.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__PocketMine Plugin__
55
name=Development Tools
66
description=A collection of tools so development for PocketMine-MP is easier
7-
version=0.7
7+
version=0.7.1
88
author=PocketMine Team
99
class=DevTools
1010
apiversion=11,12
@@ -53,6 +53,9 @@ class=DevTools
5353
- API 12
5454
- New obfuscation methods ;)
5555
56+
0.7.1
57+
- Fixed obfuscation being applied on non-obfuscation mode
58+
5659
5760
*/
5861

@@ -293,7 +296,7 @@ private function PMFPlugin(&$output, $className, $data = array(), $obfuscate = f
293296
$lastObjectVar = true;
294297
break;
295298
case T_STRING:
296-
if($lastObjectVar === true){
299+
if($lastObjectVar === true and $obfuscate === true){
297300
$xorKey = Utils::getRandomBytes(strlen($tag[1]), false);
298301
$code .= '{"'.$this->encodeString($tag[1] ^ $xorKey).'"^"'.$this->encodeString($xorKey).'"}';
299302
}else{

0 commit comments

Comments
 (0)