diff --git a/src/PAMI/Message/Message.php b/src/PAMI/Message/Message.php index 52145679..878bea98 100644 --- a/src/PAMI/Message/Message.php +++ b/src/PAMI/Message/Message.php @@ -159,7 +159,7 @@ protected function sanitizeInput($value) if (strcasecmp($value, 'off') === 0 || strcasecmp($value, 'false') === 0 || strcasecmp($value, 'no') === 0) { return (boolean)false; } - if (filter_var($value, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE)) { + if (filter_var($value, FILTER_UNSAFE_RAW, FILTER_NULL_ON_FAILURE)) { return (string)htmlspecialchars($value, ENT_QUOTES); } throw new PAMIException("Incoming String is not sanitary. Skipping: '" . $value . "'\n");