patch for error editing shared tasks lists

"Paul Cooper" <[email protected]> 19 May 2003 14:36:19 +0100
Newsgroups gmane.comp.horde.nag
Message-ID <[email protected]>
Hi,

I kept getting 'permission denied' errors when trying to edit shared
task lists. Using kronolith as a working example where I can edit share
calendars I think I tracked it down to
nag/templates/tasklists/javascript.inc where &amp; is not getting
replaced by & in the editURL which confuses edit.php when it gets opened
in a new window. See the attached diff.

Paul


-- 
-----------------------------------------------------------------
Paul Cooper                      |  Tel: 0121 331 7858
Software Manager                 |  Fax: 0121 331 7859
Digital Media Centre             |  mailto:[email protected]
University of Central England    |  http://www.design4media.co.uk
Birmingham, B4 7DX               |
-----------------------------------------------------------------


-- 
Nag mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
javascript.inc.diff (text/x-patch, 824 B)
Index: javascript.inc
===================================================================
RCS file: /repository/nag/templates/tasklists/javascript.inc,v
retrieving revision 1.4
diff -u -r1.4 javascript.inc
--- javascript.inc	8 May 2003 13:40:35 -0000	1.4
+++ javascript.inc	19 May 2003 13:20:38 -0000
@@ -1,7 +1,7 @@
 <script language="JavaScript" type="text/javascript">
 <!--
 
-var editURL = '<?php echo Horde::addParameter(Horde::url($registry->getParam('webroot', 'horde') . '/shares/edit.php?app=nag'), 'share', '@ID@') ?>';
+var editURL = '<?php echo str_replace('&amp;', '&', Horde::addParameter(Horde::url($registry->getParam('webroot', 'horde') . '/shares/edit.php?app=nag'), 'share', '@ID@')) ?>';
 var cancelSubmit = false;
 var fields = new Array();
 <?php foreach ($personal_tasklists as $id => $tasklist): ?>