From 54704e6f8c30fd8ae3f1c952c75eab6b30579bd2 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 22 Mar 2011 12:20:43 +0000 Subject: [PATCH] 2011-03-22 Miguel de Dios * include/functions.php: fixed the function "safe_url_extraclean" to pass the url with character -. Fixes: #3234360 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4114 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index baf794b4f6..08080ed470 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-03-22 Miguel de Dios + + * include/functions.php: fixed the function "safe_url_extraclean" to pass + the url with character -. + + Fixes: #3234360 + 2011-03-22 Miguel de Dios * include/functions_reporting.php: cleaned source code style. diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 0fd443041f..757e770af1 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -101,7 +101,7 @@ function safe_url_extraclean ($string, $default_string = '') { $string = substr ($string, 0, 125); /* Search for unwanted characters */ - if (preg_match ('/[^a-zA-Z0-9_\/\.]|(\/\/)|(\.\.)/', $string)) { + if (preg_match ('/[^a-zA-Z0-9_\/\.\-]|(\/\/)|(\.\.)/', $string)) { return $default_string; }