Notifications: Retains postback values if input was invalid.

This commit is contained in:
Nate Jones
2014-07-07 15:37:34 +00:00
parent 3df8a0c267
commit 6dd90e41ad
2 changed files with 62 additions and 44 deletions

View File

@@ -66,6 +66,20 @@
}
}
if (!function_exists('fix_postback')) {
function fix_postback($post_array) {
foreach ($post_array as $index => $value) {
if (is_array($value)) { fix_postback($value); }
else {
$value = str_replace('"', """, $value);
$value = str_replace("'", "'", $value);
$post_array[$index] = $value;
}
}
return $post_array;
}
}
if (!function_exists('uuid')) {
function uuid() {
//uuid version 4