Subject: | Fix for forms upload with explicit decoding |
CGI::Lite currently checks for an exact match against the MIME type when deciding to deal with file uploads. Depending on browsers and page encodings, sometimes the MIME type string is on the form "application/x-www-form-urlencoded; encoding=utf-8", which will fail. One should instead only check if the string starts with the correct MIME type:
676c676
< ($content_type eq 'application/x-www-form-urlencoded')) {
---
Show quoted text
> ($content_type =~ /^application\/x-www-form-urlencoded/)) {