mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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:
parent
63b61c9013
commit
54704e6f8c
@ -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>
|
2011-03-22 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php: cleaned source code style.
|
* include/functions_reporting.php: cleaned source code style.
|
||||||
|
@ -101,7 +101,7 @@ function safe_url_extraclean ($string, $default_string = '') {
|
|||||||
$string = substr ($string, 0, 125);
|
$string = substr ($string, 0, 125);
|
||||||
|
|
||||||
/* Search for unwanted characters */
|
/* Search for unwanted characters */
|
||||||
if (preg_match ('/[^a-zA-Z0-9_\/\.]|(\/\/)|(\.\.)/', $string)) {
|
if (preg_match ('/[^a-zA-Z0-9_\/\.\-]|(\/\/)|(\.\.)/', $string)) {
|
||||||
return $default_string;
|
return $default_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user