coppermine-gallery.com/forum

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: panwac on December 31, 2005, 02:46:22 PM

Title: Report to Admin - strange bug
Post by: panwac on December 31, 2005, 02:46:22 PM
I found strange bug in reports created by report_file.php - error is only visible, when submitter writes data himself in NAME or EMAIL textboxes (when user haven't got e-mail address in his account and writes it in form textbox whitout changing own username, an effect is the same).
So, in mails recieved from CPG there are incorect values in positions: FROM and TITLE-SUBJECT (and small problem with formatiing in message area - I think, the reason of that should be the same).

In mail in FROM position there is text, eg.:
<input type="text" class="textinput" value="panwac"name="panwac" style="width: 100%;" /> [my_mail@domain.pl]

In SUBJECT position there is info like this:
A report from <input type="text" class="textinput" value="panwac" name="panwac" style="width: 100%;" /> on a gallery file

When a report is created by a user having e-mail address in his account (script takes a data from database), everything is O.K.

Peter
Title: Re: Report to Admin - strange bug
Post by: Tranz on January 02, 2006, 10:26:18 PM
Oh, ok. I was able to replicate this as an anonymous user who fills in the email address field. Thank you for the more detailed instructions on how to duplicate this. I'm not sure where to fix this so hopefully someone can.