Skip to content

Commit

Permalink
[DomCrawler] lowered parsed protocol string (fixes #6986)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Klauss committed Feb 19, 2013
1 parent d41fc8b commit cb03074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/DomCrawler/Link.php
Expand Up @@ -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));
}

Expand Down

0 comments on commit cb03074

Please sign in to comment.