Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug #27526 #66

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libraries/joomla/filesystem/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ public static function stripExt($file)
/**
* Makes file name safe to use
*
* @param string $file The name of the file [not full path]
* @param string $filename The name of the file [not full path]
*
* @return string The sanitised string
*
* @since 11.1
*/
public static function makeSafe($file)
public static function makeSafe($filename)
{
$regex = array('#(\.){2,}#', '#[^A-Za-z0-9\.\_\- ]#', '#^\.#');
$search = "/\?%*:|\"<>#;()&;, ";

return preg_replace($regex, '', $file);
return str_replace(str_split($search), '', $filename);
}

/**
Expand Down
43 changes: 0 additions & 43 deletions templates/atomic/css/blueprint/src/AUTHORS.txt

This file was deleted.

168 changes: 0 additions & 168 deletions templates/atomic/css/blueprint/src/CHANGELOG.txt

This file was deleted.

22 changes: 0 additions & 22 deletions templates/atomic/css/blueprint/src/LICENSE.txt

This file was deleted.

83 changes: 0 additions & 83 deletions templates/atomic/css/blueprint/src/README.txt

This file was deleted.

Loading