Skip to content

Compatibility improvements

Compare
Choose a tag to compare
@Mosnar Mosnar released this 09 Dec 17:12
· 131 commits to master since this release

[2.0.0] - 2019-12-09

Changed

  • A breaking change has been introduced in the way URLs are generated. Previously we were calling encodeURIComponent
    on each part of the requested URL, we are now calling a modified encodeURIComponent that excludes some characters to
    be compliant with Imgix's official php SDK:
$path = preg_replace_callback("/([^\w\-\/\:@])/", function ($match) {
    return rawurlencode($match[0]);
}, $path);

See https://locutus.io/php/url/rawurlencode/ for details

Added

  • Added environment variable SLS_IGNORE with default value of favicon.ico

Fixed

  • Issue with Imgix compatibility regarding URL encoding. See Changed section