diff --git a/lib/Cake/Utility/Xml.php b/lib/Cake/Utility/Xml.php index cf257b49454..80831dee47c 100644 --- a/lib/Cake/Utility/Xml.php +++ b/lib/Cake/Utility/Xml.php @@ -101,7 +101,7 @@ public static function build($input, $options = array()) { } elseif (file_exists($input)) { return self::_loadXml(file_get_contents($input), $options); } elseif (strpos($input, 'http://') === 0 || strpos($input, 'https://') === 0) { - $socket = new HttpSocket(); + $socket = new HttpSocket(array('redirect' => 10)); $response = $socket->get($input); if (!$response->isOk()) { throw new XmlException(__d('cake_dev', 'XML cannot be read.'));