function webfm_sanlen in Web File Manager 5.2
Same name and namespace in other branches
- 5 webfm.module \webfm_sanlen()
Function to sanitize long filenames
File
- ./
webfm.module, line 1675
Code
function webfm_sanlen($x) {
if (strlen($x) > 80) {
return substr($x, 0, 40) . "..." . substr($x, -40, 40);
}
return $x;
}