Problem with anchors

bforchhammer - March 26, 2008 - 00:05
Project:Safe HTML
Version:5.x-1.2
Component:Code
Category:support request
Priority:minor
Assigned:Unassigned
Status:active
Description

I just tried to use some anchors (that's something like ) in my safehtml-filtered text-fields and safehtml stripped the name attribute which effectively renders the anchor useless.
A small adjustment to classes/selfhtml.php fixes this: in line 270 remove "name" from the $attributes array.

I don't know whether the "name"-attribute can possibly do anything bad to your site or not, so I'm not putting this as a feature request, but if anyone ever gets the same problem, here you go ;-)

 
 

Drupal is a registered trademark of Dries Buytaert.