[ansel] Bug in permissions code

Heath S. Hendrickson heath at outerspaceconsultants.com
Thu Jan 22 19:16:48 PST 2004


I was looking at the source for the permission pop-up when I noticed a 
bug that isn't displayed so it isn't apparent that it exists.

Here's the relevant section of the generated HTML:

<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="item"><table border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="notice"><img src="/horde/graphics/alerts/error.gif" alt="Error" title="Error" />&nbsp;&nbsp;<b>An error occurred listing galleries: 37 does not exist</b></td></tr></table></td></tr></table>
<br />
<form name="edit" method="post" action="/horde/ansel/perms.php">
<input type="hidden" name="actionID" value="editform" />
<input type="hidden" name="cid" value="37" />

<input type="hidden" name="app" value="<br />
<b>Notice</b>:  Undefined variable:  app in <b>/var/www/secure/horde/templates/shares/edit.inc</b> on line <b>4</b><br />
" />
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr valign="middle">



I checked that template file, and it's expecting $app to be set by 
whatever includes it, and perms.php doesn't set $app anywhere.  I did a 
grep of the entire Ansel codebase and didn't find it.

I didn't know if this was supposed to be auto-defined somehow or what, 
so I don't have a patch to fix it.

heath


More information about the ansel mailing list