[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)
committerErnesto Baschny <ernst@cron-it.de>
Mon, 23 May 2011 20:33:41 +0000 (22:33 +0200)
commit82726885bd77aa578dba387acb0d6b376795b63f
treeb2e75d8fbdabfe9ba9698859e056dc892980d814
parentf3820c5ef0f2f20b46f1a63b87065c039442407f
[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: I49a7bd993e51da0cdd42b15f0bf77150bed4d556
Resolves: #12225
Resolves: #13432
Resolves: #24483
Reviewed-on: http://review.typo3.org/1705
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
t3lib/class.t3lib_div.php