url quote the name in case it gets included in the url of the search results

This commit is contained in:
Mike Bonnet 2008-09-08 16:32:05 -04:00
parent ac51ab2ce2
commit 00044616bd

View file

@ -1,4 +1,5 @@
#from kojiweb import util
#import urllib
#include "includes/header.chtml"
@ -36,7 +37,9 @@
#for $result in $results
<tr class="$util.rowToggle($self)">
<td>$result.id</td>
<td><a href="${infoURL % $result}">$result.name</a></td>
#set $quoted = $result.copy()
#silent $quoted['name'] = $urllib.quote($quoted['name'])
<td><a href="${infoURL % $quoted}">$result.name</a></td>
</tr>
#end for
#else