voxforge.org
VoxForge Dev

Changeset 2398

Show
Ignore:
Timestamp:
01/11/08 13:57:47 (1 year ago)
Author:
kmaclean
Message:

updates to validation of length of zip file so that it includes date and 3 digit random code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/SpeechSubmission/VFSpeechSubmission/server/javaUploadServer.php

    r2397 r2398  
    5151} 
    5252// !!!!!! 
    53 // limits the length of the filename to 40 char 
     53// limits the length of the filename to 40 char + date and 3 char random codea 
    5454// removes non-alphanumeric characters from file name 
    5555// listfiles needs to remove random number 
     
    5858$newname =  ereg_replace  (  "\.zip"  , ""  , $newname  ); 
    5959$newname =  ereg_replace  (  "[^a-zA-Z0-9_-]"  , ""  , $newname  ); 
    60 $newname = substr($newname , 0, 40); 
     60$newname = substr($newname , 0, 53); 
    6161 
    6262$ran = rand () ;