Skip to content

Commit fb284ae

Browse files
committed
Replace undocumented 'FILTER_SANITIZE_FULL_SPECIAL_CHARS' filter by common 'FILTER_UNSAFE_RAW' filter
1 parent 1ce449e commit fb284ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PAMI/Message/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function sanitizeInput($value)
159159
if (strcasecmp($value, 'off') === 0 || strcasecmp($value, 'false') === 0 || strcasecmp($value, 'no') === 0) {
160160
return (boolean)false;
161161
}
162-
if (filter_var($value, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE)) {
162+
if (filter_var($value, FILTER_UNSAFE_RAW, FILTER_NULL_ON_FAILURE)) {
163163
return (string)htmlspecialchars($value, ENT_QUOTES);
164164
}
165165
throw new PAMIException("Incoming String is not sanitary. Skipping: '" . $value . "'\n");

0 commit comments

Comments
 (0)