Skip to content

Commit 1ce449e

Browse files
committed
Remove deprecated 'FILTER_SANITIZE_STRING' string value sanitization branch
1 parent be09d49 commit 1ce449e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/PAMI/Message/Message.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ 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_STRING, FILTER_NULL_ON_FAILURE)) {
163-
return (string)$value;
164-
}
165162
if (filter_var($value, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE)) {
166163
return (string)htmlspecialchars($value, ENT_QUOTES);
167164
}

0 commit comments

Comments
 (0)