Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 02:46 am EDT

Geeklog Forums

Links plugin category display bug


Status: offline

thelusiv

Forum User
Junior
Registered: 05/21/04
Posts: 23
Location:Clemson, SC
groggy
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?
 Quote

Status: offline

thelusiv

Forum User
Junior
Registered: 05/21/04
Posts: 23
Location:Clemson, SC
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
Text Formatted Code
"Bob\'s Links"
 
and
Text Formatted Code
"Bob\\\'s Links"
 
...
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.
One of the Geeklog Core Developers.
 Quote

All times are EDT. The time is now 02:46 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