Make ActionSerialize more meaningful
Otherwise, we're only serializing strings.
This commit is contained in:
parent
ae9aea3126
commit
3fb8dcdc85
@ -136,7 +136,7 @@ class ActionSerialize extends AbstractAction
|
||||
|
||||
public function decode()
|
||||
{
|
||||
return serialize( $this->value );
|
||||
return serialize( json_decode( $this->value ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
|
||||
<option value="QuotedPrintableEncode" <?php echo selected($action_str, 'QuotedPrintableEncode'); ?>>quoted_printable_encode()</option>
|
||||
<option value="Urlencode" <?php echo selected($action_str, 'Urlencode'); ?>>urlencode()</option>
|
||||
<option value="Urldecode" <?php echo selected($action_str, 'Urldecode'); ?>>urldecode()</option>
|
||||
<option value="Serialize" <?php echo selected($action_str, 'Serialize'); ?>>serialize()</option>
|
||||
<option value="Serialize" <?php echo selected($action_str, 'Serialize'); ?>>serialize($json)</option>
|
||||
<option value="Unserialize" <?php echo selected($action_str, 'Unserialize'); ?>>unserialize()</option>
|
||||
<option value="Base64Decode" <?php echo selected($action_str, 'Base64Decode'); ?>>base64_decode()</option>
|
||||
<option value="Base64Encode" <?php echo selected($action_str, 'Base64Encode'); ?>>base64_encode()</option>
|
||||
|
Loading…
Reference in New Issue
Block a user