Matthijs van den Bos
8f8ba380d6
[DomCrawler] fix handling of schemes by Link::getUri()
...
A link (anchor tag with an href attr) in crawled by the Crawler
can contain any valid URI, including mailto: links.
Currently this is not correctly supported by Link::getUri.
Schemes that do not start with 'http' are treated as relative URIs
and appenden to the base URI. This leads to strange URIs like this:
http://foo.com/mailto:foo@bar.com
Fixed Link::getUri to treat any URI with a schema part as an
absolute URL. Updated the unit tests to test for this.
2013-02-28 13:15:59 +01:00
Johannes Klauss
cb0307474e
[DomCrawler] lowered parsed protocol string ( fixes #6986 )
2013-02-19 18:21:02 +01:00
Joseph Bielawski
292364ad70
[DomCrawler] Added some docbocks into DomCrawler classes. Closes #3832
2012-04-08 13:35:35 +02:00
Kris Wallsmith
fe62401907
optimized string starts with checks
...
Doing this with strpos() is slightly faster than substr().
2012-01-11 11:33:56 -08:00
stealth35
a245e15434
[DomCrawler] trim URI in getURI
2011-11-10 15:38:28 +01:00
Fabien Potencier
8ccebc4631
[DomCrawler] fixed Link::getUri() method for anchors
2011-06-23 08:20:13 +02:00
Alexander
d49e306b9b
[DomCrawler] Fixed handling of relative query strings as links
2011-06-22 22:08:01 +02:00
Fabien Potencier
54e054b2d1
[DomCrawler] tweaked public @api
2011-06-14 15:16:43 +02:00
Jordi Boggiano
08e7629fb4
[DomCrawler] Uppercase http methods
2011-05-25 15:45:23 +02:00
sasezaki
3d85db8fbc
fixed typoe on Exception message
2011-04-27 23:04:13 +09:00
Fabien Potencier
8b74c6eb9c
[DomCrawler] refactored URLs management in Link and Form
2011-04-23 21:45:44 +02:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Fabien Potencier
9ceec87eb8
[DomCrawler] fixed various bug with URIs
2011-04-08 17:52:43 +02:00
Fabien Potencier
e515913747
[DomCrawler] tagged the guaranteed BC API
2011-03-24 10:00:10 +01:00
Fabien Potencier
c8c5720fa1
[DomCrawler] moved protected to private
2011-03-11 15:13:33 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Jeremy Bush
4460b49802
Add support for base tag for Link and Form, Fixes #9422
2011-01-14 17:26:24 +01:00
Kris Wallsmith
f79e23ffb5
Removed all those spaces after @author that were bothering me so…
2010-10-18 16:55:41 +02:00
Jordi Boggiano
1719bfb871
[DomCrawler] Fixed URIs being incorrectly generated
...
When the path is not ending with a slash and the form/link has only ?get=params then the last bit of the path was incorrectly stripped
2010-09-03 09:13:07 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00