Fossil SCM

Retain the "name" query parameter in hidden parameters if it does not comes from the extra path component; adapted from suggested change in [forum:/forumpost/e2e9aebc4db4420e|forum post e2e9aebc4db4420e].

andybradford 2025-11-14 22:09 trunk
Commit 96fab06a2237c5ef901114ea828b4d2754301cec7c470fcf543566d8ce28da13
1 file changed +1 -1
+1 -1
--- src/robot.c
+++ src/robot.c
@@ -209,11 +209,11 @@
209209
@ <form method="GET" id="x6"><p>
210210
@ <span id="x3" style="visibility:hidden;">\
211211
@ Press <input type="submit" id="x5" value="Ok" focus> to continue</span>
212212
@ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\
213213
@ </p>
214
- cgi_tag_query_parameter("name");
214
+ if( g.zExtra && g.zExtra[0] ) cgi_tag_query_parameter("name");
215215
cgi_query_parameters_to_hidden();
216216
@ <input id="x4" type="hidden" name="proof" value="0">
217217
@ </form>
218218
@ <script nonce='%s(style_nonce())'>
219219
@ function aaa(x){return document.getElementById(x);}\
220220
--- src/robot.c
+++ src/robot.c
@@ -209,11 +209,11 @@
209 @ <form method="GET" id="x6"><p>
210 @ <span id="x3" style="visibility:hidden;">\
211 @ Press <input type="submit" id="x5" value="Ok" focus> to continue</span>
212 @ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\
213 @ </p>
214 cgi_tag_query_parameter("name");
215 cgi_query_parameters_to_hidden();
216 @ <input id="x4" type="hidden" name="proof" value="0">
217 @ </form>
218 @ <script nonce='%s(style_nonce())'>
219 @ function aaa(x){return document.getElementById(x);}\
220
--- src/robot.c
+++ src/robot.c
@@ -209,11 +209,11 @@
209 @ <form method="GET" id="x6"><p>
210 @ <span id="x3" style="visibility:hidden;">\
211 @ Press <input type="submit" id="x5" value="Ok" focus> to continue</span>
212 @ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\
213 @ </p>
214 if( g.zExtra && g.zExtra[0] ) cgi_tag_query_parameter("name");
215 cgi_query_parameters_to_hidden();
216 @ <input id="x4" type="hidden" name="proof" value="0">
217 @ </form>
218 @ <script nonce='%s(style_nonce())'>
219 @ function aaa(x){return document.getElementById(x);}\
220

Keyboard Shortcuts

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