function DevelMailLog::dirify

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

Class

DevelMailLog
Logs mail messages to the filesystem.

Code

private function dirify($string) {
    return preg_replace('/[^a-zA-Z0-9_\\-\\.@]/', '_', $string);
}