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].
Commit
96fab06a2237c5ef901114ea828b4d2754301cec7c470fcf543566d8ce28da13
Parent
c14f217df4900d5…
1 file changed
+1
-1
+1
-1
| --- src/robot.c | ||
| +++ src/robot.c | ||
| @@ -209,11 +209,11 @@ | ||
| 209 | 209 | @ <form method="GET" id="x6"><p> |
| 210 | 210 | @ <span id="x3" style="visibility:hidden;">\ |
| 211 | 211 | @ Press <input type="submit" id="x5" value="Ok" focus> to continue</span> |
| 212 | 212 | @ <span id="x7" style="visibility:hidden;">You appear to be a robot.</span>\ |
| 213 | 213 | @ </p> |
| 214 | - cgi_tag_query_parameter("name"); | |
| 214 | + if( g.zExtra && g.zExtra[0] ) cgi_tag_query_parameter("name"); | |
| 215 | 215 | cgi_query_parameters_to_hidden(); |
| 216 | 216 | @ <input id="x4" type="hidden" name="proof" value="0"> |
| 217 | 217 | @ </form> |
| 218 | 218 | @ <script nonce='%s(style_nonce())'> |
| 219 | 219 | @ function aaa(x){return document.getElementById(x);}\ |
| 220 | 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 | 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 |