[PATCH] Fix for bug 70753: charset not detected when more than one "charset" in Content-Type

Waldo Bastian bastian at kde.org
Thu Dec 18 21:20:49 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu December 18 2003 18:59, Thiago Macieira wrote:
> Hello,
>
> I the attached patch fixes bug #70753. When receiving a header like:
> Content-Type: text/html; charset=ISO-8859-4; charset=ISO-8859-4
>
> kio_http sets the "charset" metadata to:
> "iso-8859-4; charset=iso-8859-4"
>
> That is, it ignores the second ; and treats the rest of the line after the
> = as one single parameter.
>
> The attached patch solves that by making it treat each parameter
> independently, separated by ;
>
> Is it ok to commit?

Why do you remove the two lower() calls?

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/4hoxN4pvrENfboIRAsWAAJ9teDac/eGz/L6Jar0LsHdl9KIgRgCfe/2A
1yNE3qmDSdKlrelbCXhWYHU=
=02RO
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list