[Bugfix] getUrl creates malformed requests if no path is given
authorPhilipp Gampe <forge.typo3.org@philippgampe.info>
Sat, 12 Mar 2011 16:26:37 +0000 (17:26 +0100)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 10 Apr 2011 10:42:28 +0000 (12:42 +0200)
commita72fc74a67a09ea585a4b423d49ac91f0d1af8cf
tree4b12582802fee3fe77c599016c6533f75ea25bd8
parentfe9b9f397d3bf0cebcf1886da455f4433febc6f0
[Bugfix] getUrl creates malformed requests if no path is given

If you fetch an url like example.org without a '/' at the end,
you will get a 400 Bad request of only fetching headers (2).
If you get all content+headers (1) you will get a 404.
getUrl should be tolerant and add the slash if it is missing.

Change-Id: I86c7478d46d62f980735e5b80c6766e8bd811938
Resolves: #12225
Resolves: #13432
Resolves: #24483
Reviewed-on: http://review.typo3.org/1138
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_div.php