Skip to content

Commit a73afd6

Browse files
committed
Fix validation of version constraints
1 parent 5a2e2d2 commit a73afd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper/validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,6 @@ public function validate_php_version($value)
250250
*/
251251
protected function check_version($value)
252252
{
253-
return (bool) preg_match('/^[<>=]*[\d+][\w.@-]+$/', $value);
253+
return (bool) preg_match('/^[<>=]*[\d+][\w.@-]+$/', htmlspecialchars_decode($value, ENT_NOQUOTES));
254254
}
255255
}

0 commit comments

Comments
 (0)