Skip to content

Commit

Permalink
fixes #8029 - remove special chars from file name
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jun 2, 2015
1 parent 77e87d7 commit 1664da1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/DevicesDetection/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

function getBrandLogo($label)
{
$label = str_replace(" ", "_", $label);
$label = preg_replace("/[^a-z0-9_-]+/i", "_", $label);
$path = dirname(__FILE__) . '/images/brand/' . $label . '.ico';
if (file_exists($path)) {
return 'plugins/DevicesDetection/images/brand/' . $label . '.ico';
Expand Down

0 comments on commit 1664da1

Please sign in to comment.