private function DevelMailLog::dirify in Devel 7
Convert a string to a valid directory name.
Return value
The sanitized string, replacing any characters not whitelisted with "_".
1 call to DevelMailLog::dirify()
- DevelMailLog::getFileName in ./
devel.mail.inc - Gets a filename for a message using tokens.
File
- ./
devel.mail.inc, line 79 - MailSystemInterface for logging mails to the filesystem.
Class
- DevelMailLog
- Logs mail messages to the filesystem.
Code
private function dirify($string) {
return preg_replace('/[^a-zA-Z0-9_\\-\\.@]/', '_', $string);
}