Joshua Nye
f019541716
Fixed broken logic in Request::getHttpHost(). It was ignoring HTTP_HOST completely.
2011-05-25 16:02:16 -04:00
Kris Wallsmith
ed8ecab7ea
[HttpFoundation] fixed locale accessor after session clear
2011-05-19 11:45:12 -07:00
Fabien Potencier
9714524b39
fixed a unit test and CS
2011-05-19 17:38:16 +02:00
jsor
fd6c254b47
[HttpFoundation] changed checking for deleted cookie to be conform with setcookie()
2011-05-19 17:14:03 +02:00
jsor
f9b6c8b74a
[HttpFoundation] included cookie headers in string representation
2011-05-19 17:14:01 +02:00
jsor
e6d929aa71
[HttpFoundation] added __toString() method
2011-05-19 17:13:58 +02:00
Miha Vrhovnik
2e286073a4
Removed ability to override method from GET request
2011-05-19 14:08:34 +02:00
Miha Vrhovnik
65ed6f7763
Added support for request method overriding via X-HTTP-Method-Override
...
This type of override is supported by MS MVC3 and is recommended by Google.
Also added ability to override request method via ?_method= when
request is made via GET.
2011-05-19 09:33:08 +02:00
Fabien Potencier
0872813278
Merge remote branch 'Seldaek/test_fix'
...
* Seldaek/test_fix:
[HttpFoundation] Windows test fixes
2011-05-17 09:16:46 +02:00
Joseph Bielawski
25c25ab4b1
Fix MimeTypeTest
2011-05-14 05:21:07 -07:00
Joseph Bielawski
d43894b42e
Remove invalid code-coverage annotions
2011-05-12 06:46:53 -07:00
Johannes Schmitt
89f60e04d1
[HttpFoundation] removed getDeep(), added a boolean flag to get() instead
2011-05-10 11:16:25 +02:00
Johannes Schmitt
4d5db59e1e
[HttpFoundation] added unit test
2011-05-05 09:14:48 +02:00
Kris Wallsmith
ae46150bc8
[HttpFoundation] added support for X-Forwarded-Port request header
2011-05-04 09:56:34 -07:00
Fabien Potencier
807c1d8f2f
fixed test
2011-05-03 23:09:15 +02:00
Jordi Boggiano
5f569efed6
[HttpFoundation] Windows test fixes
2011-05-02 18:39:39 +02:00
Fabien Potencier
b048c44b46
Merge remote branch 'vicb/file-security'
...
* vicb/file-security:
[HttpFoundation] Sanitize uploaded file original name
2011-04-30 07:21:47 +02:00
Igor Wiedler
907e693350
[HttpFoundation] Fix FileException checking in FileTest
2011-04-29 22:48:38 +02:00
Victor Berchet
dccac192d6
[HttpFoundation] Sanitize uploaded file original name
2011-04-29 19:27:53 +02:00
Victor Berchet
d350e01e33
File & UploadedFile tweaks
2011-04-27 09:10:41 +02:00
Fabien Potencier
00bfd10ca9
[HttpFoundation] refactored File management to be safer
2011-04-27 08:50:33 +02:00
Fabien Potencier
5bb9da4b6d
[HttpFoundation] renamed getDefaultExtension() to guessExtension()
...
The renamed method now returns null if it cannot guess the extension. It allows
the developper to know whether the extension has been guessed or not.
2011-04-27 08:03:19 +02:00
Fabien Potencier
aa3ec504ae
removed File::getWebPath()
...
This has been removed for several reasons:
* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
Fabien Potencier
889c422d6e
Merge remote branch 'igorw/ipv6'
...
* igorw/ipv6:
[HttpFoundation] minor optimization
minor adjustments suggested by vicb
[HttpFoundation] IPv6 support for RequestMatcher
[HttpFoundation] refactor RequestMatcherTest to use dataProvider
[Validator] use full iPv6 regex
[Validator] add IPv6 support to UrlValidator
[HttpFoundation] add IPv6 support to Request
[HttpFoundation] test Request::create with an IP as host name
[HttpFoundation] refactor Request::getClientIp test
2011-04-24 22:04:25 +02:00
Pascal Borreli
df3947019e
[HttpFoundation][Windows] Fixed test after removal of realpath 03bb3580a6
2011-04-22 20:49:07 +00:00
Igor Wiedler
9ae5023a70
[HttpFoundation] IPv6 support for RequestMatcher
2011-04-22 17:37:22 +02:00
Igor Wiedler
5a80c2ff17
[HttpFoundation] refactor RequestMatcherTest to use dataProvider
2011-04-22 17:07:57 +02:00
Igor Wiedler
82699c5a98
[HttpFoundation] add IPv6 support to Request
2011-04-22 17:07:44 +02:00
Igor Wiedler
18e9268112
[HttpFoundation] test Request::create with an IP as host name
2011-04-22 17:07:35 +02:00
Igor Wiedler
7815bbf3ea
[HttpFoundation] refactor Request::getClientIp test
2011-04-22 17:07:24 +02:00
Fabien Potencier
417839345f
Merge remote branch 'lsmith77/request_format_tweaks'
...
* lsmith77/request_format_tweaks:
added text/html to default format mapping
return "q" from splitHttpAcceptHeader() to enable more complex accept header negotiations
added support for setting a custom default format in Request::getRequestFormat()
2011-04-22 15:33:01 +02:00
Fabien Potencier
fd05f02b23
[HttpFoundation] added logic to automatically add the charset when not present in the Content-Type for relevant Content-Types
2011-04-22 15:26:38 +02:00
Kris Wallsmith
30511d2965
[HttpFoundation] fixed FilesystemSessionStorage
2011-04-20 13:20:21 -07:00
Lukas Kahwe Smith
53c7bcf3aa
added support for setting a custom default format in Request::getRequestFormat()
2011-04-17 14:37:35 +02:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Fabien Potencier
5316decd8c
Merge remote branch 'hhamon/shared_maxage_fix'
...
* hhamon/shared_maxage_fix:
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 23:24:31 +02:00
Fabien Potencier
66c4bc727c
[HttpFoundation] renamed Cookie::getExpire() to getExpiresTime() to be consistent with the DomCrawler component
2011-04-13 20:10:39 +02:00
hhamon
053d83f557
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 15:58:48 +02:00
George Giannoulopoulos
81e1d4f11d
Refactoring, replace is_null() wuth null ===
2011-04-13 13:56:15 +02:00
Johannes Schmitt
408b94b968
[HttpFoundation] added some unit tests
2011-04-06 08:17:03 +02:00
Fabien Potencier
f77b94074f
[HttpFoundation] replaced the option argument of Session by defaultLocale
2011-03-30 17:26:13 +02:00
Pascal Borreli
0199b5c70d
[HttpFoundation][Windows] Fixed guesser tests if Fileinfo extension is not loaded
...
Didn't test for presence of mime_content_type function since it's obsolete (deprecated) in PHP5
2011-03-29 14:32:17 +00:00
Fabien Potencier
a6e6cbbb27
[HttpFoundation] removed the hardcoded ^ and $ from the RequestMatcher
2011-03-23 21:27:04 +01:00
Fabien Potencier
510c30693b
[HttpFoundation] fixed a test
2011-03-19 12:29:23 +01:00
Kris Wallsmith
ab3b8ac364
[HttpFoundation] cleaned up comments and coding standards, added better exception messages when filesystem functions throw errors, added "moved" arg to UploadedFile constructor, added FileNotFoundException to UploadedFile per the parent constructor
2011-03-17 16:07:53 -07:00
Kris Wallsmith
a5d8770a54
[HttpFoundation] fixed ApacheRequest, added tests
2011-03-16 06:13:01 -07:00
Fabien Potencier
bc6ffeef83
[HttpFoundation] fixed flash management
2011-03-11 20:23:17 +01:00
Jordi Boggiano
30a8f4fd42
[HttpFoundation] Fixed test breaking on windows
2011-03-09 17:26:11 +01:00
Jordi Boggiano
991b1ed225
[HttpFoundation] UploadedFile::getOriginalName is now overriding getName
2011-03-09 17:26:08 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00