View Single Post
  #24  
Old 08-23-2007, 01:10 AM
Chaslie Chaslie is offline
Moderator
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 587
Default Found a Quick Fix for tag stripping in extra fields

Have found a quick fix for tags being stripped in extra fields. If you revert back to using includes/functions.php from v3.1.4 (Revision: 1.9) , the tags are not lost when you 'add' or 'modify' a listing in the front end - both for Short description, description AND extra fields (particularly when you include an embeded video).

The main difference between these 2 files is that v3.1.4 has this:
Code:
if($lev==0)
	{
		$path[]= safeStripSlashes($row['name']);
	}
	else
	{
and 3.1.7 doesn't.

However v3.1.7 (Revision: 1.13) has all the xss_clean componant added where as v3.1.4 doesn't.

I'll submit this to Bug Tracker.

I have also been having the problem with adding the '$str = strip_tags' suggestions made earlier. Adding <br> was fine but anything else was throwing up MySQL errors and still stripping the code (in extra fields only).
__________________
Chaslie
V3.1.7 dev
mods.auscity.com
AUSCITY
Reply With Quote