[rt-users] MakeClicky does not handle html anchors correctly

Allen allen+rtlist at crystalfontz.com
Wed Nov 24 13:45:33 EST 2010


> If you have set  Set(@Active_MakeClicky, qw(httpurl_overwrite));
> ...
> and the link location is "http://en.wikipedia.org/wiki/HTML_anchor" ( the anchor #Anchor is missing)

I put this in the local ./html/Elements/MakeClicky callback file:

        name   => "httpurl_overwrite",
#        regex  => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}/,
# negative lookbehind to allow unmodified img tag markup in combo with
ScrubHTML rules
        regex  => qr@(?<!
src=["'])https?:([\w\/\@\-~%#?=;,.:+\[\]\(\)]|\&|\[\])+[\w\/]@,
        action => "url_overwrite",



More information about the rt-users mailing list