PDA

View Full Version : Bug with BB Code in References


h2ojunkie
11-25-2008, 10:17 PM
I came across a bug when enabling Parse BBCode for the references module


This
http://www.peteducation.com/article.cfm?c=2+2084&aid=444

Becomes:
http://www.peteducation.com/article.cfm?c=2+2084&aid=444



As you can see, the & is converted to & which breaks the link.

Morgan
11-28-2008, 04:10 PM
In the /geek/gars/mods/display/references.php file try adding in the bold blue bits:

$values = $this->parse_bbcode(unhtmlspecialchars($values), $settings['allow_html'], $settings['parse_bb']);

h2ojunkie
11-28-2008, 05:56 PM
That did the trick