Doppelpunkte in URLs escapen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 2 Feb 2011 10:04:50 +0000 (11:04 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 2 Feb 2011 10:04:50 +0000 (11:04 +0100)
SL/Form.pm

index 6b1ee50..f9dc3dd 100644 (file)
@@ -378,7 +378,7 @@ sub escape {
   my ($self, $str) = @_;
 
   $str =  Encode::encode('utf-8-strict', $str) if $::locale->is_utf8;
-  $str =~ s/([^a-zA-Z0-9_.-])/sprintf("%%%02x", ord($1))/ge;
+  $str =~ s/([^a-zA-Z0-9_.:-])/sprintf("%%%02x", ord($1))/ge;
 
   $main::lxdebug->leave_sub(2);