mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Moved PhpDeserialize.js to PHP.js to encompass possible future PHP-related ops
This commit is contained in:
parent
cfb6dd9471
commit
fe8049199a
6 changed files with 19 additions and 17 deletions
|
@ -1,8 +1,5 @@
|
|||
/**
|
||||
* Php Serialization operations.
|
||||
* This Javascript implementation is based on the Python implementation by
|
||||
* Armin Ronacher (2016), who released it under the 3-Clause BSD license.
|
||||
* See: https://github.com/mitsuhiko/phpserialize/
|
||||
* PHP operations.
|
||||
*
|
||||
* @author Jarmo van Lenthe [github.com/jarmovanlenthe]
|
||||
* @copyright Jarmo van Lenthe
|
||||
|
@ -10,8 +7,7 @@
|
|||
*
|
||||
* @namespace
|
||||
*/
|
||||
|
||||
const PhpSerialization = {
|
||||
const PHP = {
|
||||
|
||||
/**
|
||||
* @constant
|
||||
|
@ -20,12 +16,17 @@ const PhpSerialization = {
|
|||
OUTPUT_VALID_JSON: true,
|
||||
|
||||
/**
|
||||
* Deserializes a PHP serialized input
|
||||
* PHP Deserialize operation.
|
||||
*
|
||||
* This Javascript implementation is based on the Python implementation by
|
||||
* Armin Ronacher (2016), who released it under the 3-Clause BSD license.
|
||||
* See: https://github.com/mitsuhiko/phpserialize/
|
||||
*
|
||||
* @param {string} input
|
||||
* @param {Object[]} args
|
||||
* @returns {string}
|
||||
*/
|
||||
PhpDeserialize: function (input, args) {
|
||||
runDeserialize: function (input, args) {
|
||||
/**
|
||||
* Recursive method for deserializing.
|
||||
* @returns {*}
|
||||
|
@ -153,6 +154,7 @@ const PhpSerialization = {
|
|||
let inputPart = input.split("");
|
||||
return handleInput();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
export default PhpSerialization;
|
||||
export default PHP;
|
Loading…
Add table
Add a link
Reference in a new issue