From a80594bcb083c26f10186d72b7042fd47b2aedd5 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Sun, 11 Feb 2024 16:02:37 +0800 Subject: [PATCH] =?UTF-8?q?model=20for=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/RenameForm.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 models/RenameForm.php diff --git a/models/RenameForm.php b/models/RenameForm.php new file mode 100644 index 0000000..927927d --- /dev/null +++ b/models/RenameForm.php @@ -0,0 +1,20 @@ + 255], + ['newName', 'match', 'pattern' => '/^[^\/:*?"<>|\\\\]+$/', 'message' => 'Invalid file name.'], + ]; + } +} \ No newline at end of file