]> mj.ucw.cz Git - libucw.git/commitdiff
UCW::CGI: "; boundary=..." is also valid syntax
authorMartin Mares <mj@ucw.cz>
Mon, 15 Aug 2011 11:27:50 +0000 (13:27 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 15 Aug 2011 11:27:50 +0000 (13:27 +0200)
ucw/perl/UCW/CGI.pm

index ff06a15ac633e6005f16a2ed50904cb486c9df24..a4c5812d9129d0bbabd607218834c39aa806f55a 100644 (file)
@@ -333,7 +333,7 @@ sub parse_mp_header() {
 sub parse_multipart_form_data() {
        # First of all, find the boundary string
        my $ct = rfc822_prepare($ENV{"CONTENT_TYPE"});
-       if (!(($boundary) = ($ct =~ /^.*;boundary=([^; ]+)/))) {
+       if (!(($boundary) = ($ct =~ /^.*;\s*boundary=([^; ]+)/))) {
                die "Multipart content with no boundary string received";
        }
        $boundary = rfc822_deescape($boundary);