Skip to content

Commit 9db8dcd

Browse files
committed
Trim value as well
We don't know if the given parameter value is trimmed or not
1 parent aef1b8a commit 9db8dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Domain/Question/Sanitization/StringSanitizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
{
88
public function sanitize(string $value): string
99
{
10-
return htmlspecialchars(strip_tags($value));
10+
return htmlspecialchars(strip_tags(trim($value)));
1111
}
1212
}

0 commit comments

Comments
 (0)