[Tickets #10636] wrong url in report abuse link

bugs at horde.org bugs at horde.org
Wed Oct 12 08:17:32 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10636
------------------------------------------------------------------------------
  Ticket             | 10636
  Created By         | thpo+horde at dotrc.de
  Summary            | wrong url in report abuse link
  Queue              | Ansel
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


thpo+horde at dotrc.de (2011-10-12 08:17) wrote:

The "Report abuse" link in ansel/faces/search/image_search.php
is broken:
https://host/ansel/faces/report.php?0=face&1=1

Can be fixed by removing the following patch (although it looks like a  
bug in Horde_Url::add()):

--- a/ansel/templates/faces/search.inc
+++ b/ansel/templates/faces/search.inc
@@ -10,7 +10,7 @@
       <br />
       <img src="<?php echo $faces->getFaceUrl($face['image_id'],  
$face_id) ?>" style="padding: 5px;" alt="<?php echo $facename?>" /><br  
/>
       <?php echo sprintf(ngettext("%d photo", "%d photos",  
count($results)), count($results)); ?><br />
-     <?php echo Horde::url('faces/report.php')->add(array('face',  
$face_id))->link(
+     <?php echo Horde::url('faces/report.php')->add('face', $face_id)->link(
               array('class' => 'small',
                     'title' => _("Report abuse or submit a removal  
request"))) . _("Report") . '</a>'?>
     <?php else: ?>






More information about the bugs mailing list