]> git.sesse.net Git - pr0n/blobdiff - perl/Sesse/pr0n/Common.pm
Allow file uploads via POST (from Windows XP's file uploading wizard; the client
[pr0n] / perl / Sesse / pr0n / Common.pm
index 4ddc0daedc581c9461a6787ddb702696271a9672..2079d6aad69c182bb26c392dec7feaf32f2ed916 100644 (file)
@@ -12,6 +12,7 @@ use Apache2::Log;
 use ModPerl::Util;
 
 use Carp;
+use Encode;
 use DBI;
 use DBD::Pg;
 use Image::Magick;
@@ -32,7 +33,7 @@ BEGIN {
                require Sesse::pr0n::Config_local;
        };
 
-       $VERSION     = "v2.11";
+       $VERSION     = "v2.12";
        @ISA         = qw(Exporter);
        @EXPORT      = qw(&error &dberror);
        %EXPORT_TAGS = qw();
@@ -128,7 +129,7 @@ sub get_query_string {
                next unless defined($value);
                next if (defined($defparam->{$key}) && $value == $defparam->{$key});
        
-               $str .= ($first) ? "?" : '&';
+               $str .= ($first) ? "?" : ';';
                $str .= "$key=$value";
                $first = 0;
        }