fixed validator which allowed to post a blank filename for static pages
This commit is contained in:
parent
7414932235
commit
d704c79ce9
@ -36,9 +36,10 @@
|
||||
*/
|
||||
function smarty_validate_criteria_isValidEntryId($value, $empty, &$params, &$formvars) {
|
||||
|
||||
$fname = $params['field'];
|
||||
if (!$value)
|
||||
return false;
|
||||
|
||||
return @utils_validateinput($fname);
|
||||
return !preg_match('/[^a-z0-9\-_]/i',$value);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user