Posted on: 08/07/06 02:36pm
By: thelusiv
When I give a category a name with an apostrophe (') in it, it is displayed in /links/index.php with a backslash () in it. This has tripped me up a few times, because I'd like to name categories things like "Bob's Links", "Users' Sites", or "Members' Blogs" and to do it without the apostrophe just isn't right (nor is "Links of Bob" quite the same). I've begun scanning through some of the code trying to find the spots where the slash should be removed. It looks like $category has its slashes removed before it is displayed. Any thoughts?
Links plugin category display bug
Posted on: 08/07/06 11:12pm
By: thelusiv
To make this worse, the extra slash is also displayed in the Category field on the link add/edit page, so if you try to make another link, and select the category with an apostrophe, things get even funkier because it goes and adds slashes to it again, so now you have two categories, one
"Bob\'s Links"
and
"Bob\\\'s Links"
...
Links plugin category display bug
Posted on: 09/17/06 10:28am
By: Laugh
I've modified the links plugin a lot but I was able to reproduce the bug regarding of editing the links.
To fix go into the public_html/admin/plugins/links/index.php and remove line 246:
$category = addslashes ($category);
and then modify line 295 or 294 if you removed the other line from
$category = addslashes ($categorydd);
to
$category = $categorydd;
Hope that helps.