cflhosting
2004-01-14, 11:33 AM
Is there good reason for not allowing file names with spaces or apostrophes to be uploaded to the server?
Had some people ask me about it, and I figured it must be the default for *some* reason, but I'm not sure what that reason is.
Secondly, if it's not a problem, what do I change the regexps to? I've dealt with them only minimally, which is probably sad considering my major.
Currently allowing:
^[-+A-Za-z0-9_.]*$
Disallowing:
^\. ^-
Thanks,
C.F.L.
Had some people ask me about it, and I figured it must be the default for *some* reason, but I'm not sure what that reason is.
Secondly, if it's not a problem, what do I change the regexps to? I've dealt with them only minimally, which is probably sad considering my major.
Currently allowing:
^[-+A-Za-z0-9_.]*$
Disallowing:
^\. ^-
Thanks,
C.F.L.