From 81e4b3dce5310aba9771a3d89efd768e3f13e991 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 11 Jan 2014 17:05:19 +0100 Subject: [PATCH] Fixed get_name_url --- onyx/include/common/Theme.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onyx/include/common/Theme.class.php b/onyx/include/common/Theme.class.php index c155fcb7..1d286add 100644 --- a/onyx/include/common/Theme.class.php +++ b/onyx/include/common/Theme.class.php @@ -74,7 +74,7 @@ class Theme function get_name_url() { - return urlencode($this->name); + return preg_replace("#[^a-zA-Z0-9_]#", "_", $this->name); } function get_id()