From: Hendrik B. <nh...@us...> - 2010-04-15 14:44:14
|
Update of /cvsroot/arianne/stendhal_website/scripts In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv11566/scripts Modified Files: players.php npcs.php Log Message: replace spaces in urls with _, instead of the mixed encoding of %20 and + Index: npcs.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/scripts/npcs.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** npcs.php 14 Nov 2009 12:15:01 -0000 1.13 --- npcs.php 15 Apr 2010 14:44:07 -0000 1.14 *************** *** 42,46 **** $imagefile = '/images/npc/'.$class.'.png'; if (isset($outfit) && $outfit != '') { ! $imagefile = '/images/outfit/'.urlencode($outfit).'.png'; } $this->imagefile=rewriteURL($imagefile); --- 42,46 ---- $imagefile = '/images/npc/'.$class.'.png'; if (isset($outfit) && $outfit != '') { ! $imagefile = '/images/outfit/'.surlencode($outfit).'.png'; } $this->imagefile=rewriteURL($imagefile); Index: players.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/scripts/players.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** players.php 12 Apr 2010 16:34:52 -0000 1.27 --- players.php 15 Apr 2010 14:44:07 -0000 1.28 *************** *** 57,62 **** function show() { echo '<div class="playerBox">'; ! echo ' <img src="'.rewriteURL('/images/outfit/'.urlencode($this->outfit).'.png').'" alt="">'; ! echo ' <a href="'.rewriteURL('/character/'.urlencode($this->name).'.html').'">'; echo ' <span class="block name">'.htmlspecialchars(utf8_encode($this->name)).'</span>'; echo ' </a>'; --- 57,62 ---- function show() { echo '<div class="playerBox">'; ! echo ' <img src="'.rewriteURL('/images/outfit/'.surlencode($this->outfit).'.png').'" alt="">'; ! echo ' <a href="'.rewriteURL('/character/'.surlencode($this->name).'.html').'">'; echo ' <span class="block name">'.htmlspecialchars(utf8_encode($this->name)).'</span>'; echo ' </a>'; |