更新正则表达式
排除更多非法字符
This commit is contained in:
parent
eefae10afe
commit
ed463be4f1
@ -14,7 +14,7 @@ class RenameForm extends Model
|
||||
return [
|
||||
['newName', 'required'],
|
||||
['newName', 'string', 'max' => 255],
|
||||
['newName', 'match', 'pattern' => '/^[^\/:*?"<>|\\\\]+$/', 'message' => 'Invalid file name.'],
|
||||
['newName', 'match', 'pattern' => '/^[^\p{C}\/:*?"<>|\\\\]+$/u', 'message' => 'Invalid file name.'],
|
||||
];
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user