2013-11-12, 03:44:34
(2013-11-11, 13:55:23)jsmcgraw Wrote: I'm receiving the following error on the /tag/exampletag page for tags that include an apostrophe/single quote:
Notice: Undefined index: O'Reilly in /news_manager/inc/site.php on line 52 Warning: Invalid argument supplied for foreach() in /news_manager/inc/site.php on line 53
Example tag above is O'Reilly. Is there a way or optimum place to escape the tag string to avoid this? I'm using an older version (2.2.4) but using the latest didn't resolve the issue.
Currently there's no way to escape apostrophes (and many other non-alphanumeric characters) in tags. A workaround would be not using them, like OReilly
I'll add this to the to-do list.
PS You get errors if you use old versions. Recent ones simply show no posts. Anyway I suggest you use the latest stable one - there are many other issues that have been fixed since 2.2.4