]> git.openstreetmap.org Git - chef.git/commitdiff
Use an equality match for TOTP validation
authorTom Hughes <tom@compton.nu>
Mon, 25 Oct 2021 19:26:42 +0000 (20:26 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 25 Oct 2021 19:27:39 +0000 (20:27 +0100)
cookbooks/overpass/templates/default/apache.erb

index fea5133feeb15448ed2450cc7aa56f0d00e772c5..47e1363813592d994d51f03fd2bf48a30e33ae65 100644 (file)
@@ -30,7 +30,7 @@
         DocumentRoot <%= @directory %>
 
         RewriteMap totp prg:/srv/query.openstreetmap.org/apache/totp-filter
-        RewriteCond "${totp:%{HTTP_COOKIE}}" "0"
+        RewriteCond ${totp:%{HTTP_COOKIE}} =0
         RewriteRule ^.*$ - [F,L]
 
 <% if node[:overpass][:restricted_api] -%>