rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
229 stars 64 forks source link

Is source-rel-filter deprecated? #298

Open ktmn opened 5 years ago

ktmn commented 5 years ago

After an update images on child sites (subdir) stopped working.

x-webp-express-error: Sanity check failed for source (retrieved by the request_uri server var): File does not exist

My nginx rule:

if ($http_accept ~* "webp") {
    rewrite ^/(.*).(jpe?g|png)$ /wp-content/plugins/webp-express/wod/webp-on-demand.php?source-rel=$request_uri&source-rel-filter=discard-parts-before-wp-content&wp-content=wp-content&%1 break;
}

Currently downgraded to 0.14.8 which seems to be the last version where it works for me.

Doesn't seem to be any reference to source-rel-filter in the source anymore, is there a new alternative I missed?

This is not urgent, have a good vocation :)

rosell-dk commented 5 years ago

Yes, sorry, I removed it in those desperate days where the plugin was closed due to security issues. I needed to be rough because I had no time for considering if the filter was insecure. And I don't think the feature was very widely used I shall get back to this after my vacation, thanks :)