From cb0307474e1cf495ee26ac417864d1e7f67245b0 Mon Sep 17 00:00:00 2001 From: Johannes Klauss Date: Tue, 19 Feb 2013 18:21:02 +0100 Subject: [PATCH] [DomCrawler] lowered parsed protocol string (fixes #6986) --- src/Symfony/Component/DomCrawler/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DomCrawler/Link.php b/src/Symfony/Component/DomCrawler/Link.php index 1804111f2efe..31e8ba12f536 100644 --- a/src/Symfony/Component/DomCrawler/Link.php +++ b/src/Symfony/Component/DomCrawler/Link.php @@ -46,7 +46,7 @@ class Link */ public function __construct(\DOMNode $node, $currentUri, $method = 'GET') { - if (!in_array(substr($currentUri, 0, 4), array('http', 'file'))) { + if (!in_array(strtolower(substr($currentUri, 0, 4)), array('http', 'file'))) { throw new \InvalidArgumentException(sprintf('Current URI must be an absolute URL ("%s").', $currentUri)); }