This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/HttpFoundation
Fabien Potencier bc330d4487 merged branch lsmith77/fix_q_handling (PR #2365)
Commits
-------

d3f137b cosmetic tweak
2877883 anything in front of ;q= is part of the mime type, anything after may be ignored

Discussion
----------

[HttpFoundation] fix splitHttpAcceptHeader() parsing of parameters

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

anything in front of ;q= is part of the mime type, anything after may be ignored

see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1

---------------------------------------------------------------------------

by lsmith77 at 2011/10/09 04:00:12 -0700

i must admit .. i am not 100% that my implemention is correct either .. but i am sure the current one isn't.

---------------------------------------------------------------------------

by lsmith77 at 2011/10/09 07:57:33 -0700

@fabpot: I am also not sure if getFormat() should optionally not support matching parameters, aka anything before ``;q=..``
2011-10-25 17:26:31 +02:00
..
File [Tests] Skip MimeTypeTest if running as root 2011-10-15 13:45:35 +02:00
SessionStorage Increase code coverage for: YamlParser, Validators, PhpEngine + Helpers, HttpFoundation 2011-06-16 11:43:27 +02:00
ApacheRequestTest.php [HttpFoundation] fixed ApacheRequest, added tests 2011-03-16 06:13:01 -07:00
CookieTest.php [HttpFoundation] standardized cookie paths (an empty path is equivalent to /) 2011-09-28 10:49:50 +02:00
FileBagTest.php [HttpFoundation] changed \LogicException to \InvalidArgumentException 2011-08-26 08:45:12 +02:00
HeaderBagTest.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
ParameterBagTest.php fixed CS 2011-06-08 19:56:59 +02:00
RequestMatcherTest.php fixes several bugs 2011-07-19 16:21:58 +02:00
RequestTest.php anything in front of ;q= is part of the mime type, anything after may be ignored 2011-10-09 12:58:45 +02:00
ResponseHeaderBagTest.php [HttpFoundation] standardized cookie paths (an empty path is equivalent to /) 2011-09-28 10:49:50 +02:00
ResponseTest.php [HttpFoundation] fixed a unit tests 2011-08-14 10:56:48 +02:00
ServerBagTest.php [HttpFoundation] made PHP_AUTH_PW optional 2011-07-26 09:32:45 +02:00
SessionTest.php [HttpFoundation] Added test that exposes error in session saving 2011-08-26 20:00:57 +10:00