2011-03-22 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2011-03-22 12:20:43 +00:00
parent 63b61c9013
commit 54704e6f8c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-03-22 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: fixed the function "safe_url_extraclean" to pass
the url with character -.
Fixes: #3234360
2011-03-22 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: cleaned source code style.

View File

@ -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;
}