From cbe42ab2bb971786e1d14eb79a11f46e9bed9f12 Mon Sep 17 00:00:00 2001 From: Bob Swinkels Date: Mon, 19 Apr 2021 15:36:38 +0200 Subject: [PATCH] Fix wildcard character in regex strings. The map directive contains regexes (strings starting with a tilde) that contain 'asterisk' characters. In a regex, the asterisk character is a metacharacter, and in this context, it is meant as a wildcard character. To achieve the desired result, we should place a dot in front of the asterisk character. --- wo/cli/templates/map-wp.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/templates/map-wp.mustache b/wo/cli/templates/map-wp.mustache index 99e654d..c7ccc79 100644 --- a/wo/cli/templates/map-wp.mustache +++ b/wo/cli/templates/map-wp.mustache @@ -36,14 +36,14 @@ map $request_uri $uri_no_cache { "~*/wp-comments-popup\.php" 1; "~*/wp-links-opml\.php" 1; "~*/xmlrpc\.php" 1; - "~*/edd-sl/*" 1; + "~*/edd-sl/.*" 1; "~*/add_to_cart/" 1; "~*/cart/" 1; "~*/account/" 1; "~*/my-account/" 1; "~*/checkout/" 1; "~*/addons/" 1; - "~*/wc-api/*" 1; + "~*/wc-api/.*" 1; "~*/logout/" 1; "~*/lost-password/" 1; "~*/panier/" 1;