mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 00:15:34 +00:00
- use preg_replace() instead of sanitize for category id list
This commit is contained in:
parent
02d81d4525
commit
d444ff3488
|
@ -48,7 +48,7 @@ $comment = sanitizeString($_POST["comment"]);
|
|||
$version_comment = sanitizeString($_POST["version_comment"]);
|
||||
|
||||
$keywords = sanitizeString($_POST["keywords"]);
|
||||
$categories = sanitizeString($_POST["categoryidform1"]);
|
||||
$categories = preg_replace('/[^0-9,]+/', '', $_POST["categoryidform1"]);
|
||||
|
||||
$reqversion = (int)$_POST["reqversion"];
|
||||
if ($reqversion<1) $reqversion=1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user