|
From: <pp...@us...> - 2011-11-30 18:16:21
|
Revision: 2039
http://simpletest.svn.sourceforge.net/simpletest/?rev=2039&view=rev
Author: pp11
Date: 2011-11-30 18:16:15 +0000 (Wed, 30 Nov 2011)
Log Message:
-----------
Apply patch for bug report 3385457 : "invalid cookie host on redirect page" submitted by transkontrol
Modified Paths:
--------------
simpletest/trunk/user_agent.php
Modified: simpletest/trunk/user_agent.php
===================================================================
--- simpletest/trunk/user_agent.php 2011-11-30 18:04:20 UTC (rev 2038)
+++ simpletest/trunk/user_agent.php 2011-11-30 18:16:15 UTC (rev 2039)
@@ -244,14 +244,14 @@
return $response;
}
$headers = $response->getHeaders();
- $location = new SimpleUrl($headers->getLocation());
- $url = $location->makeAbsolute($url);
if ($this->cookies_enabled) {
$headers->writeCookiesToJar($this->cookie_jar, $url);
}
if (! $headers->isRedirect()) {
break;
}
+ $location = new SimpleUrl($headers->getLocation());
+ $url = $location->makeAbsolute($url);
$encoding = new SimpleGetEncoding();
} while (! $this->isTooManyRedirects(++$redirects));
return $response;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|