PDA

View Full Version : Bug in EditModule


masterg
09-27-2007, 10:53 AM
Whoops.. wrong section..

masterg
09-27-2007, 10:54 AM
There seems to be a bug in the edit module page,entering something like <font color="red"><b>Text here</b></font> into a "Text" column, such as in the "[Site Navigation]" module,will break out of the table the next time the page is reloaded.

Our Sponsors
 

KW802
09-27-2007, 11:29 AM
[ Threads merged ]

Brian
09-27-2007, 01:47 PM
Thank you for pointing that out. If you will look in your forum/includes/vba_cmps_adminfunctions.php file for this code:
<td><input class="bginput" name="' . $name . '[' . $pagecount . '][text]" value="' . $navlinks['text'] . '" size="18" tabindex="1" ' . $jsdefault_onchange . '/></td>

And replace with this:
<td><input class="bginput" name="' . $name . '[' . $pagecount . '][text]" value="' . htmlspecialchars($navlinks['text']) . '" size="18" tabindex="1" ' . $jsdefault_onchange . '/></td>

Then that should take care of the problem.