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

Commit

Permalink
- Fixed obfuscation being applied on non-obfuscation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Jan 19, 2014
1 parent 120b0b4 commit b8d3e5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DevTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -53,6 +53,9 @@ class=DevTools
- API 12
- New obfuscation methods ;)
0.7.1
- Fixed obfuscation being applied on non-obfuscation mode
*/

Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit b8d3e5c

Please sign in to comment.