Skip to content

Commit 369798d

Browse files
committed
Fixed too strict escaping for product names #240
1 parent 83449c3 commit 369798d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

incl/processing.inc.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,9 @@ function sanitizeString(?string $input, bool $strongFilter = false): ?string {
528528
if ($input == null)
529529
return null;
530530
if ($strongFilter) {
531-
return filter_var($input, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);
531+
return filter_var($input, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);
532532
} else {
533-
return filter_var($input, FILTER_SANITIZE_SPECIAL_CHARS);
533+
return filter_var($input, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
534534
}
535535
}
536536

0 commit comments

Comments
 (0)