Posted on: 04/19/07 02:35pm
By: Anonymous (darkpaw)
The "Report a Bug" link on the left is broken - can't find /tracker/.
When you view a poll's results, any poll option comment (the text below the result bar) has a backslash in front of apostrophes. Perhaps a stripslashes() would help here?
Re: Bug in polls (bug tracker down)
Posted on: 05/01/07 05:53am
By: Dirk
I couldn't reproduce this. Anyone else?
Is this after an upgrade from an older version or does it happen with newly submitted comments? If so, what about comments in other places (stories, some other plugin)? Do they show the extra backslashes there, too?
bye, Dirk
Re: Bug in polls (bug tracker down)
Posted on: 05/01/07 08:24am
By: Anonymous (darkpaw)
This is a fresh install, both Geeklog and my database. (My webhost had a catastrophic disk failure and the backups were fried, too.) If it helps, this is a Linux box, with PHP 5.1.4 and MySQL 4.1.21-standard.
Every time I save the poll, a fresh set of backslashes is added. Here's some poll results you can look at: http://www.darkpaw.co.uk/polls/index.php?qid=20070419091616350&aid=-1
It does not happen when comments are added or displayed.
Thanks!
Re: Bug in polls (bug tracker down)
Posted on: 05/01/07 10:24am
By: Dirk
Quote by: darkpawIt does not happen when comments are added or displayed.
Ah, I was looking the wrong place then. Still can't reproduce it when I edit the poll, though.
Does it only happen with the "remark" field? What about the actual answers?
bye, Dirk
Re: Bug in polls (bug tracker down)
Posted on: 05/01/07 11:43pm
By: Anonymous (tokyoahead)
I can reproduce it on my running 1.4.1. It happens only in the remarks, not in the actual poll questions.
This is fixed in CVS already however, no need for action.
Re: Bug in polls (bug tracker down)
Posted on: 05/02/07 07:29am
By: Anonymous (darkpaw)
Quote by: tokyoaheadThis is fixed in CVS already however, no need for action.
If you could give me the fix, I can update my site. Thanks!
Re: Bug in polls (bug tracker down)
Posted on: 05/02/07 10:02am
By: Anonymous (tokyoahead)
give me some time for that one, the current CVS code has been changed completely, and there is no "fix" I can copy out for you.
I have to go to the current files and see where the issue is there. Maybe I can get you something in 24hrs or so.
Re: Bug in polls (bug tracker down)
Posted on: 05/02/07 01:49pm
By: Dirk
Quote by: tokyoaheadI have to go to the current files and see where the issue is there. Maybe I can get you something in 24hrs or so.
I'd also like to see a fix for the 1.4.1-1 branch, please
bye, Dirk
Re: Bug in polls (bug tracker down)
Posted on: 05/03/07 04:30am
By: Anonymous (tokyoahead)
In /public_html/admin/plugin/polls/index.php around line 143 after
Text Formatted Code
for ($i = 0; $i < sizeof ($A); $i++) {
$A[$i] = COM_stripslashes ($A[$i]);
}
add
Text Formatted Code
for ($i = 0; $i < sizeof ($R); $i++) {
$R[$i] = COM_stripslashes ($R[$i]);
}
HTH.
Re: Bug in polls (bug tracker down)
Posted on: 05/03/07 06:53pm
By: Anonymous (Nice one!)
Thanks for that!