Skip to content

v0.4.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@clue clue released this 05 Sep 11:55
· 227 commits to master since this 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'));