It involves when you are using Friendly URL's for categories.
Let's say you have a category called 'Arts & Sciences". When you created this category and the makeCategoryFriendly function was applied to it, you end up with 'Arts_Sciences' (the '&' gets changed to '_') which is fine so far.
However, if story.php, the code tries to use $globals['category_url'] (which has been already sanitized) and apply to it the makeCategoryFriendly function again.
Code:
$navwhere['link1'] = getmyurl('maincategory', makeCategoryFriendly($globals['category_url']));
Again, this is a corner case. You are applying makeCategoryFriendly to an already sanitized version of the category name and messing it up.
I fixed this by removing the makeCategoryFriendly function:
Code:
$navwhere['link1'] = getmyurl('maincategory', $globals['category_url']);
So be careful with this fix as I am not aware of the implication with NOT using Friendly URL's for categories.





Linear Mode




