v0.4.1
Pre-release
Pre-release
-
Fix: Replace URI placeholders before applying base URI, in order to avoid
duplicate slashes introduced due to URI placeholders.
(#48)// now correctly returns "http://example.com/path" // instead of previous "http://example.com//path" $browser = $browser->withBase('http://example.com/'); echo $browser->resolve('{+path}', array('path' => '/path')); // now correctly returns "http://example.com/path?q=test" // instead of previous "http://example.com/path/?q=test" $browser = $browser->withBase('http://example.com/path'); echo $browser->resolve('{?q}', array('q' => 'test'));