Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:42 am EST
Geeklog Forums
ampersand comment bug?
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
It looks like we're calling htmlspecialchars() against the title both before we save the title into the database and when we load it out of the database for display. We probably shouldn't be doing it before we load it into the database...
In comment.php (in the savecomment() function) you want to change the line:
to:
I'll get this fix into CVS today...
-Vinny
In comment.php (in the savecomment() function) you want to change the line:
Text Formatted Code
$title = htmlspecialchars (COM_checkWords (strip_tags (COM_stripslashes ($title))));to:
Text Formatted Code
$title = COM_checkWords (strip_tags (COM_stripslashes ($title)));I'll get this fix into CVS today...
-Vinny
8
8
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
Quote by Dirk: isn't this the same issue as in bug #174?
Similar problems, but I think there is one other thing that needs to be fixed before this works as expected... I'll look into it.
Quote by bobotron:This appears to fix the resulting comment, but it's still screwed up in the comment preview.
Good Catch, I'll fix that up as well.
-Vinny
9
6
Quote
All times are EST. The time is now 07:42 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content