Changeset 3398


Ignore:
Timestamp:
2002-08-23T15:31:53+12:00 (22 years ago)
Author:
jrm21
Message:

Oops... the last change to the regex was too permissive... fixed up to
restrict the chars allowed in the anchor...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/EMAILPlug.pm

    r3397 r3398  
    410410    # assume hostnames are \.\w\- only, then might have a trailing '/.*'
    411411    # assume URI doesn't finish with a '.'
    412     $text =~ s@((http|ftp|https)://[\w\-]+(\.[\w\-]+)*/?((&amp;|\.)?[\w\?\=\-_/~]+)*(\#.*)?)@<a href=\"$1\">$1<\/a>@g;
     412    $text =~ s@((http|ftp|https)://[\w\-]+(\.[\w\-]+)*/?((&amp;|\.)?[\w\?\=\-_/~]+)*(\#[\w\.\-_]*)?)@<a href=\"$1\">$1<\/a>@g;
    413413
    414414
Note: See TracChangeset for help on using the changeset viewer.