8000 [DomCrawler] lowered parsed protocol string (fixes #6986) · unframework/symfony@cb03074 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb03074

Browse files
author
Johannes Klauss
committed
[DomCrawler] lowered parsed protocol string (fixes symfony#6986)
1 parent d41fc8b commit cb03074

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/DomCrawler

1 file changed

+1
-1
lines changed

src/Symfony/Component/DomCrawler/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Link
4646
*/
4747
public function __construct(\DOMNode $node, $currentUri, $method = 'GET')
4848
{
49-
if (!in_array(substr($currentUri, 0, 4), array('http', 'file'))) {
49+
if (!in_array(strtolower(substr($currentUri, 0, 4)), array('http', 'file'))) {
5050
throw new \InvalidArgumentException(sprintf('Current URI must be an absolute URL ("%s").', $currentUri));
5151
}
< 3C30 /code>
5252

0 commit comments

Comments
 (0)
0