Skip to content

Commit

Permalink
fix obfuscation of Label: goto Label;
Browse files Browse the repository at this point in the history
  • Loading branch information
pk-fr committed Aug 22, 2021
1 parent eca306c commit 0155716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/classes/parser_extensions/my_node_visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Author: Pascal KISSIAN
// Resume: http://pascal.kissian.net
//
// Copyright (c) 2015-2020 Pascal KISSIAN
// Copyright (c) 2015-2021 Pascal KISSIAN
//
// Published under the MIT License
// Consider it as a proof of concept!
Expand Down Expand Up @@ -803,7 +803,7 @@ public function leaveNode(PhpParser\Node $node)
$scrambler = $t_scrambler['label'];
if ( ($node instanceof PhpParser\Node\Stmt\Label) || ($node instanceof PhpParser\Node\Stmt\Goto_) )
{
$name = $node->name;
$name = $this->get_identifier_name($node->name);
if ( is_string($name) && (strlen($name) !== 0) )
{
$r = $scrambler->scramble($name);
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
// Use and abuse at your own risks.
//========================================================================

$yakpro_po_version = "2.0.12";
$yakpro_po_version = "2.0.13";

?>

0 comments on commit 0155716

Please sign in to comment.