My questions are:
1) Should we make a function for this, since will likely be needing it in more places. If so, was gonna place in globals.php directly (this code is used to sanitize the sites variable)
2) Is this overly aggressive; are their other characters that should be allowed in directory and file names?
Brady,
Restricting the acceptable formname values might have an impact on ZH’s specialty wise form installation feature as I’m not sure how they track the directory structure. I think it’s ok as they don’t seem to be using the request variable to determine directory location, but they would know better.