Added object's DN escape in links's URL
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 May 2012 10:36:15 +0000 (12:36 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 May 2012 10:36:15 +0000 (12:36 +0200)
public_html/templates/default/viewSearch.tpl

index f340138..2652c6b 100644 (file)
@@ -74,7 +74,7 @@
     </tr>
     {foreach from=$page.list item=object}
     <tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'>
-        <td class='LSobject-list LSobject-list-names'><a href='view.php?LSobject={$LSsearch->LSobject}&amp;dn={$object->dn}'  class='LSobject-list'>{$object->displayName}</a> </td>
+        <td class='LSobject-list LSobject-list-names'><a href='view.php?LSobject={$LSsearch->LSobject}&amp;dn={$object->dn|escape:'url'}'  class='LSobject-list'>{$object->displayName}</a> </td>
         {if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn}</td>{/if}
         <td class='LSobject-list LSobject-list-actions'>
         {foreach from=$object->actions item=item}