File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -688,10 +688,7 @@ public function is_valid() {
688688 $ isauthority = $ this ->iuserinfo !== null || $ this ->ihost !== null || $ this ->port !== null ;
689689 if ($ this ->ipath !== '' &&
690690 (
691- $ isauthority && (
692- $ this ->ipath [0 ] !== '/ ' ||
693- substr ($ this ->ipath , 0 , 2 ) === '// '
694- ) ||
691+ $ isauthority && $ this ->ipath [0 ] !== '/ ' ||
695692 (
696693 $ this ->scheme === null &&
697694 !$ isauthority &&
Original file line number Diff line number Diff line change @@ -333,11 +333,6 @@ public function testInvalidAbsolutizeBase()
333333 $ this ->assertFalse (Requests_IRI::absolutize ('://not a URL ' , '../ ' ));
334334 }
335335
336- public function testInvalidAbsolutizeRelative ()
337- {
338- $ this ->assertFalse (Requests_IRI::absolutize ('http://example.com/ ' , 'http://example.com//not a URL ' ));
339- }
340-
341336 public function testFullGamut ()
342337 {
343338 $ iri = new Requests_IRI ();
You can’t perform that action at this time.
0 commit comments