Crb_escape_url prevents assets from loading in some instances

Hi,

I’ve come across an issue that is probably a little unique to my setup. I alter where plugins and themes are stored via various constants in my wp-config like so:

define('WP_CONTENT_DIR', dirname(__FILE__) . '/docroot/assets');

define('WP_CONTENT_URL', '/assets');

define('WP_PLUGIN_DIR', dirname(__FILE__) . '/docroot/extensions');

define('WP_PLUGIN_URL', '/extensions');

define('UPLOADS', 'assets/media');

However, this means when we get into the crb_escape_url in cerber-common, a path is checked against FILTER_VALIDATE_URL which fails as it is testing against /extensions/wp-cerber/ in my instance rather than the full url.

Any way around this without changing the config on a lot of sites?

Thanks

Hi! Yes, that’s a less common setup. We expect to add support for relative URLs in the next bug-fix release, which should be out within a week.

Relative URLs have been supported since the last release: WP Cerber 9.9.5 is out