mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
- use preg_replace() instead of sanitizeString()
This commit is contained in:
parent
8250b79ebc
commit
599995edbc
|
@ -168,7 +168,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
|
|||
else
|
||||
$name = basename($userfilename);
|
||||
|
||||
$categories = sanitizeString($_POST["categoryids"]);
|
||||
$categories = preg_replace('/[^0-9,]+/', '', $_POST["categoryids"]);
|
||||
$cats = array();
|
||||
if($categories) {
|
||||
$catids = explode(',', $categories);
|
||||
|
|
Loading…
Reference in New Issue
Block a user