[Rt-commit] r4479 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Fri Feb 3 18:40:15 EST 2006


Author: ruz
Date: Fri Feb  3 18:40:13 2006
New Revision: 4479

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Elements/ScrubHTML

Log:
 r1657 at cubic-pc:  cubic | 2006-01-27 22:08:33 +0300
 * allow several __*__ values in href attribute


Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/ScrubHTML
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/ScrubHTML	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/ScrubHTML	Fri Feb  3 18:40:13 2006
@@ -52,8 +52,9 @@
         '*'    => 0,
         id     => 1,
         class  => 1,
-        href   => qr{^(?:http:|ftp:|https:|/)}i, 
         # Match http, ftp and relative urls
+        # XXX: we also scrub format strings with this module then allow simple config options
+        href   => qr{^(?:http:|ftp:|https:|/|__Web(?:Path|BaseURL|URL)__)}i,
         face   => 1,
         size   => 1,
         target => 1


More information about the Rt-commit mailing list