[Freeipa-devel] [PATCH] 096 Fixed content type check in login_password

Petr Vobornik pvoborni at redhat.com
Wed Feb 29 15:02:41 UTC 2012


login_password is expecting that request content_type will be 
'application/x-www-form-urlencoded'.

Current check is an equality check of content_type http header.

RFC 3875 defines that content type can contain parameters separated by 
';'. For example: when firefox is doing ajax call it sets the request 
header to 'application/x-www-form-urlencoded; charset=UTF-8' which leads 
to negative result.

This patch makes the check more benevolent to allow such values.

Patch is a fix-up for:
https://fedorahosted.org/freeipa/ticket/2095
-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0096-Fixed-content-type-check-in-login_password.patch
Type: text/x-patch
Size: 1599 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120229/1f90f262/attachment.bin>


More information about the Freeipa-devel mailing list