Skip to content

Commit

Permalink
Update CheckFilenames.php
Browse files Browse the repository at this point in the history
Replacing whitespaces with minus again
  • Loading branch information
bennyborn authored Sep 19, 2018
1 parent 5a08464 commit a585b5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/CheckFilenames.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public static function sanitizeFileOrFolderName( $strName ) {
$newName = strtolower($newName);

// remove forbidden characters
$newName = preg_replace("/[\s]+/", '-', $newName);
$newName = preg_replace("/[^a-z0-9-_]+/", '', $newName);
$newName = standardize( \StringUtil::restoreBasicEntities($newName) );

Expand Down

0 comments on commit a585b5a

Please sign in to comment.