]> git.openstreetmap.org Git - chef.git/commitdiff
Escape backslashes in regular expression master
authorTom Hughes <tom@compton.nu>
Tue, 18 Nov 2025 16:00:58 +0000 (16:00 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 18 Nov 2025 16:00:58 +0000 (16:00 +0000)
cookbooks/web/templates/default/apache.frontend.erb

index 76c4fb36d56fe19c5789b2be97c5744db52f44c4..4880b7e2b572c816ee54e03089e0f880e6f5a739 100644 (file)
@@ -194,9 +194,9 @@ ErrorLog /var/log/apache2/error.log
   #
   # Normalise Accept-Encoding headers to workaround cgimap bug
   #
-  RequestHeader edit* Accept-Encoding "\s*,\s*" ", "
+  RequestHeader edit* Accept-Encoding "\\s*,\\s*" ", "
 
-    #
+  #
   # Pass supported calls to cgimap
   #
   RewriteRule ^/api/0\.6/map(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]