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

Commit

Permalink
- Fixed bug with prepare_vars()
Browse files Browse the repository at this point in the history
  • Loading branch information
fieryprophet committed Jul 24, 2014
1 parent 744cfd5 commit fdec703
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#CHANGELOG

##07/24/2014
- Fixed bug with prepare_vars()

##06/19/2014
- Added flags to enable/disable validation checks for every type (for example, this will help in situations where someone wants to enable all functions but not blacklist a fake function name to remove the function whitelist.) Disabling a validation check also ignores any custom validation check for that type!
- Fixed issue with toolkit giving incorrect error and exception messages
Expand Down
2 changes: 1 addition & 1 deletion MANUAL.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h3>1 - About PHPSandbox &amp; PHPSandbox Toolkit</h3>
</a>
<br/>
<h1 style="margin: 0;">
PHPSandbox Toolkit 1.3.7
PHPSandbox Toolkit 1.3.8
</h1>
<br/>
<strong>Developed by: </strong> <a href="http://www.fieryprophet.com" target="_blank">Elijah Horton</a>
Expand Down
2 changes: 1 addition & 1 deletion src/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @namespace PHPSandbox
*
* @author Elijah Horton <[email protected]>
* @version 1.3.7
* @version 1.3.8
*/
class Error extends \Exception {
/* START ERROR CODES */
Expand Down
4 changes: 2 additions & 2 deletions src/PHPSandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace PHPSandbox
*
* @author Elijah Horton <[email protected]>
* @version 1.3.7
* @version 1.3.8
*/
class PHPSandbox implements \IteratorAggregate {
/**
Expand Down Expand Up @@ -6579,7 +6579,7 @@ protected function prepare_vars(){
$output[] = '$' . $name . " = null";
}
} else {
$output[] = '$' . $name . " = unserialize('" . addcslashes(serialize($value), "'") . "')";
$output[] = '$' . $name . " = unserialize('" . addcslashes(serialize($value), "'\\") . "')";
}
}
return count($output) ? "\r\n" . implode(";\r\n", $output) . ";\r\n" : '';
Expand Down
2 changes: 1 addition & 1 deletion src/SandboxWhitelistVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @namespace PHPSandbox
*
* @author Elijah Horton <[email protected]>
* @version 1.3.7
* @version 1.3.8
*/
class SandboxWhitelistVisitor extends \PHPParser_NodeVisitorAbstract {
/** The PHPSandbox instance to check against
Expand Down
2 changes: 1 addition & 1 deletion src/SandboxedString.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @namespace PHPSandbox
*
* @author Elijah Horton <[email protected]>
* @version 1.3.7
* @version 1.3.8
*/
class SandboxedString implements \ArrayAccess, \IteratorAggregate {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/ValidatorVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @namespace PHPSandbox
*
* @author Elijah Horton <[email protected]>
* @version 1.3.7
* @version 1.3.8
*/
class ValidatorVisitor extends \PHPParser_NodeVisitorAbstract {
/** The PHPSandbox instance to check against
Expand Down
2 changes: 1 addition & 1 deletion src/WhitelistVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @namespace PHPSandbox
*
* @author Elijah Horton <[email protected]>
* @version 1.3.7
* @version 1.3.8
*/
class WhitelistVisitor extends \PHPParser_NodeVisitorAbstract {
/** The PHPSandbox instance to check against
Expand Down

0 comments on commit fdec703

Please sign in to comment.