Mercurial > hg > fapweb
changeset 915:a6b4b7401508
Improve path component filtering.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 27 Nov 2014 11:50:53 +0200 |
parents | d42c398d8896 |
children | 42c3fbca0d86 |
files | msite.inc.php |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Thu Nov 27 11:23:28 2014 +0200 +++ b/msite.inc.php Thu Nov 27 11:50:53 2014 +0200 @@ -848,7 +848,8 @@ // function stFilterPathComponent($str) { - return preg_replace("/[^a-zA-Z0-9\(\)\,\._-]/", "_", $str); + $tmp = str_replace(array("\$", ), array("S", ), $str); + return preg_replace("/[^a-zA-Z0-9\(\)\,\._-]/", "_", $tmp); }