Przeglądaj źródła

Fix an XHTML validation error.

Torbjorn Svensson 20 lat temu
rodzic
commit
11c1fdad79
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 3 0
      docs/Changelog
  2. 1 1
      modules/Pisg/Common.pm

+ 3 - 0
docs/Changelog

@@ -5,6 +5,9 @@ pisg (0.69) - ??
        (thanks to Ian Rutson).
        (thanks to Ian Rutson).
    * Parsers:
    * Parsers:
      + Finally add miau parser by Kresten Kjeldgaard.
      + Finally add miau parser by Kresten Kjeldgaard.
+   Torbjörn:
+   * Bug fixes:
+     + Fix urlencode to encode '&' (thanks to Thomas Whaples).
 
 
 pisg (0.68) - Mon Mar, 13th 2006
 pisg (0.68) - Mon Mar, 13th 2006
    Christoph:
    Christoph:

+ 1 - 1
modules/Pisg/Common.pm

@@ -204,7 +204,7 @@ sub htmlentities
 sub urlencode
 sub urlencode
 {
 {
     my $str = shift;
     my $str = shift;
-    $str =~ s/([^\w_.\/?&=:+-])/sprintf "%%%02X", ord($1)/ge;
+    $str =~ s/([^\w_.\/?=:+-])/sprintf "%%%02X", ord($1)/ge;
     return $str;
     return $str;
 }
 }