This repository has been archived by the owner on Sep 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
744cfd5
commit fdec703
Showing
8 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* @namespace PHPSandbox | ||
* | ||
* @author Elijah Horton <[email protected]> | ||
* @version 1.3.7 | ||
* @version 1.3.8 | ||
*/ | ||
class PHPSandbox implements \IteratorAggregate { | ||
/** | ||
|
@@ -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" : ''; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* @namespace PHPSandbox | ||
* | ||
* @author Elijah Horton <[email protected]> | ||
* @version 1.3.7 | ||
* @version 1.3.8 | ||
*/ | ||
class SandboxedString implements \ArrayAccess, \IteratorAggregate { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|