summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-07-26 17:09:51 +0530
committerSashi202019-07-26 17:09:51 +0530
commitf0aae6c1f0818cd74cef1e25387963782881d8a2 (patch)
treeeea913cbdffb457c79568c90c1ed78061bc71ef3
parent9b3006f0e36c856279b5e87d00f5c38ac616ce80 (diff)
downloadesim_workshop_form-f0aae6c1f0818cd74cef1e25387963782881d8a2.tar.gz
esim_workshop_form-f0aae6c1f0818cd74cef1e25387963782881d8a2.tar.bz2
esim_workshop_form-f0aae6c1f0818cd74cef1e25387963782881d8a2.zip
Modify check filename function
-rwxr-xr-xesim_workshop_form.module2
1 files changed, 1 insertions, 1 deletions
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;