From f0aae6c1f0818cd74cef1e25387963782881d8a2 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Fri, 26 Jul 2019 17:09:51 +0530 Subject: Modify check filename function --- esim_workshop_form.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esim_workshop_form.module b/esim_workshop_form.module index 141902d..07b9bf0 100755 --- a/esim_workshop_form.module +++ b/esim_workshop_form.module @@ -188,7 +188,7 @@ function esim_workshop_file_path() function workshop_project_file_check_valid_filename($file_name) { - if (!preg_match('/^[0-9]{4}/', $file_name)) + if (!preg_match('/^[0-9]{4}$/', $file_name)) return FALSE; else if (substr_count($file_name, ".") > 1) return FALSE; -- cgit