Fossil SCM

Do not duplicate the "name" query parameter in the robot.c captcha.

drh 2025-08-19 22:55 trunk
Commit 118540fa8403265197c1b97cb04d12aa7a7eaf193c047d6f86967d0bd4161d58
1 file changed +1
--- src/robot.c
+++ src/robot.c
@@ -204,10 +204,11 @@
204204
@ <form method="GET" id="x6"><p>
205205
@ <span id="x3" style="visibility:hidden;">\
206206
@ Press <input type="submit" id="x5" value="Ok" focus> to continue</span>
207207
@ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\
208208
@ </p>
209
+ cgi_tag_query_parameter("name");
209210
cgi_query_parameters_to_hidden();
210211
@ <input id="x4" type="hidden" name="proof" value="0">
211212
@ </form>
212213
@ <script nonce='%s(style_nonce())'>
213214
@ function aaa(x){return document.getElementById(x);}\
214215
--- src/robot.c
+++ src/robot.c
@@ -204,10 +204,11 @@
204 @ <form method="GET" id="x6"><p>
205 @ <span id="x3" style="visibility:hidden;">\
206 @ Press <input type="submit" id="x5" value="Ok" focus> to continue</span>
207 @ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\
208 @ </p>
 
209 cgi_query_parameters_to_hidden();
210 @ <input id="x4" type="hidden" name="proof" value="0">
211 @ </form>
212 @ <script nonce='%s(style_nonce())'>
213 @ function aaa(x){return document.getElementById(x);}\
214
--- src/robot.c
+++ src/robot.c
@@ -204,10 +204,11 @@
204 @ <form method="GET" id="x6"><p>
205 @ <span id="x3" style="visibility:hidden;">\
206 @ Press <input type="submit" id="x5" value="Ok" focus> to continue</span>
207 @ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\
208 @ </p>
209 cgi_tag_query_parameter("name");
210 cgi_query_parameters_to_hidden();
211 @ <input id="x4" type="hidden" name="proof" value="0">
212 @ </form>
213 @ <script nonce='%s(style_nonce())'>
214 @ function aaa(x){return document.getElementById(x);}\
215

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button