From: Hendrik B. <nh...@us...> - 2010-08-29 18:07:15
|
Update of /cvsroot/arianne/stendhal_website/scripts In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv16249/scripts Modified Files: news.php Log Message: filter / and * on nice urls (fixes #3055407, #3055406, #3055403) Index: news.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/scripts/news.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** news.php 29 Aug 2010 14:03:06 -0000 1.27 --- news.php 29 Aug 2010 18:07:06 -0000 1.28 *************** *** 118,123 **** function getNiceURL() { $res = strtolower($this->title.'-'.$this->id); ! $res = preg_replace('/[ _,;.:<>|!?\'"()] /', ' ', $res); ! $res = preg_replace('/[ _,;.:<>|!?\'"()]/', '-', $res); return urlencode($res.'.html'); } --- 118,123 ---- function getNiceURL() { $res = strtolower($this->title.'-'.$this->id); ! $res = preg_replace('/[ _,;.:<>|!?\'"()\/*] /', ' ', $res); ! $res = preg_replace('/[ _,;.:<>|!?\'"()\/*]/', '-', $res); return urlencode($res.'.html'); } |