Fossil SCM

Change the name of the /test_env page to /test-env for consistency. The old name is retained as an alias for backwards compatibility.

drh 2025-03-29 15:10 trunk
Commit caf286d7480727d3341aceeb0c4a2f7b655af03e8c04df1c56ba08ac484bb56a
+2 -2
--- src/setup.c
+++ src/setup.c
@@ -462,11 +462,11 @@
462462
@ and "require a mouse event" should be turned on. These values only come
463463
@ into play when the main auto-hyperlink settings is 2 ("UserAgent and
464464
@ Javascript").</p>
465465
@
466466
@ <p>To see if Javascript-base hyperlink enabling mechanism is working,
467
- @ visit the <a href="%R/test_env">/test_env</a> page (from a separate
467
+ @ visit the <a href="%R/test-env">/test-env</a> page (from a separate
468468
@ web browser that is not logged in, even as "anonymous") and verify
469469
@ that the "g.jsHref" value is "1".</p>
470470
@ <p>(Properties: "auto-hyperlink", "auto-hyperlink-delay", and
471471
@ "auto-hyperlink-mouseover"")</p>
472472
}
@@ -604,11 +604,11 @@
604604
@ in the CGI script.
605605
@ </ol>
606606
@ (Property: "localauth")
607607
@
608608
@ <hr>
609
- onoff_attribute("Enable /test_env",
609
+ onoff_attribute("Enable /test-env",
610610
"test_env_enable", "test_env_enable", 0, 0);
611611
@ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all
612612
@ users. When disabled (the default) only users Admin and Setup can visit
613613
@ the /test_env page.
614614
@ (Property: "test_env_enable")
615615
--- src/setup.c
+++ src/setup.c
@@ -462,11 +462,11 @@
462 @ and "require a mouse event" should be turned on. These values only come
463 @ into play when the main auto-hyperlink settings is 2 ("UserAgent and
464 @ Javascript").</p>
465 @
466 @ <p>To see if Javascript-base hyperlink enabling mechanism is working,
467 @ visit the <a href="%R/test_env">/test_env</a> page (from a separate
468 @ web browser that is not logged in, even as "anonymous") and verify
469 @ that the "g.jsHref" value is "1".</p>
470 @ <p>(Properties: "auto-hyperlink", "auto-hyperlink-delay", and
471 @ "auto-hyperlink-mouseover"")</p>
472 }
@@ -604,11 +604,11 @@
604 @ in the CGI script.
605 @ </ol>
606 @ (Property: "localauth")
607 @
608 @ <hr>
609 onoff_attribute("Enable /test_env",
610 "test_env_enable", "test_env_enable", 0, 0);
611 @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all
612 @ users. When disabled (the default) only users Admin and Setup can visit
613 @ the /test_env page.
614 @ (Property: "test_env_enable")
615
--- src/setup.c
+++ src/setup.c
@@ -462,11 +462,11 @@
462 @ and "require a mouse event" should be turned on. These values only come
463 @ into play when the main auto-hyperlink settings is 2 ("UserAgent and
464 @ Javascript").</p>
465 @
466 @ <p>To see if Javascript-base hyperlink enabling mechanism is working,
467 @ visit the <a href="%R/test-env">/test-env</a> page (from a separate
468 @ web browser that is not logged in, even as "anonymous") and verify
469 @ that the "g.jsHref" value is "1".</p>
470 @ <p>(Properties: "auto-hyperlink", "auto-hyperlink-delay", and
471 @ "auto-hyperlink-mouseover"")</p>
472 }
@@ -604,11 +604,11 @@
604 @ in the CGI script.
605 @ </ol>
606 @ (Property: "localauth")
607 @
608 @ <hr>
609 onoff_attribute("Enable /test-env",
610 "test_env_enable", "test_env_enable", 0, 0);
611 @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all
612 @ users. When disabled (the default) only users Admin and Setup can visit
613 @ the /test_env page.
614 @ (Property: "test_env_enable")
615
+1 -1
--- src/sitemap.c
+++ src/sitemap.c
@@ -285,11 +285,11 @@
285285
style_header("Test Page Map");
286286
style_adunit_config(ADUNIT_RIGHT_OK);
287287
}
288288
@ <ul id="sitemap" class="columns" style="column-width:20em">
289289
if( g.perm.Admin || db_get_boolean("test_env_enable",0) ){
290
- @ <li>%z(href("%R/test_env"))CGI Environment Test</a></li>
290
+ @ <li>%z(href("%R/test-env"))CGI Environment Test</a></li>
291291
}
292292
if( g.perm.Read ){
293293
@ <li>%z(href("%R/test-rename-list"))List of file renames</a></li>
294294
}
295295
@ <li>%z(href("%R/test-builtin-files"))List of built-in files</a></li>
296296
--- src/sitemap.c
+++ src/sitemap.c
@@ -285,11 +285,11 @@
285 style_header("Test Page Map");
286 style_adunit_config(ADUNIT_RIGHT_OK);
287 }
288 @ <ul id="sitemap" class="columns" style="column-width:20em">
289 if( g.perm.Admin || db_get_boolean("test_env_enable",0) ){
290 @ <li>%z(href("%R/test_env"))CGI Environment Test</a></li>
291 }
292 if( g.perm.Read ){
293 @ <li>%z(href("%R/test-rename-list"))List of file renames</a></li>
294 }
295 @ <li>%z(href("%R/test-builtin-files"))List of built-in files</a></li>
296
--- src/sitemap.c
+++ src/sitemap.c
@@ -285,11 +285,11 @@
285 style_header("Test Page Map");
286 style_adunit_config(ADUNIT_RIGHT_OK);
287 }
288 @ <ul id="sitemap" class="columns" style="column-width:20em">
289 if( g.perm.Admin || db_get_boolean("test_env_enable",0) ){
290 @ <li>%z(href("%R/test-env"))CGI Environment Test</a></li>
291 }
292 if( g.perm.Read ){
293 @ <li>%z(href("%R/test-rename-list"))List of file renames</a></li>
294 }
295 @ <li>%z(href("%R/test-builtin-files"))List of built-in files</a></li>
296
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -166,11 +166,11 @@
166166
style_submenu_element("Artifacts", "bloblist");
167167
if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){
168168
style_submenu_element("Table Sizes", "repo-tabsize");
169169
}
170170
if( g.perm.Admin || g.perm.Setup || db_get_boolean("test_env_enable",0) ){
171
- style_submenu_element("Environment", "test_env");
171
+ style_submenu_element("Environment", "test-env");
172172
}
173173
@ <table class="label-value">
174174
fsize = file_size(g.zRepositoryName, ExtFILE);
175175
@ <tr><th>Repository&nbsp;Size:</th><td>%,lld(fsize) bytes</td>
176176
@ </td></tr>
177177
--- src/stat.c
+++ src/stat.c
@@ -166,11 +166,11 @@
166 style_submenu_element("Artifacts", "bloblist");
167 if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){
168 style_submenu_element("Table Sizes", "repo-tabsize");
169 }
170 if( g.perm.Admin || g.perm.Setup || db_get_boolean("test_env_enable",0) ){
171 style_submenu_element("Environment", "test_env");
172 }
173 @ <table class="label-value">
174 fsize = file_size(g.zRepositoryName, ExtFILE);
175 @ <tr><th>Repository&nbsp;Size:</th><td>%,lld(fsize) bytes</td>
176 @ </td></tr>
177
--- src/stat.c
+++ src/stat.c
@@ -166,11 +166,11 @@
166 style_submenu_element("Artifacts", "bloblist");
167 if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){
168 style_submenu_element("Table Sizes", "repo-tabsize");
169 }
170 if( g.perm.Admin || g.perm.Setup || db_get_boolean("test_env_enable",0) ){
171 style_submenu_element("Environment", "test-env");
172 }
173 @ <table class="label-value">
174 fsize = file_size(g.zRepositoryName, ExtFILE);
175 @ <tr><th>Repository&nbsp;Size:</th><td>%,lld(fsize) bytes</td>
176 @ </td></tr>
177
+4 -3
--- src/style.c
+++ src/style.c
@@ -1375,11 +1375,12 @@
13751375
@ </form>
13761376
style_finish_page();
13771377
}
13781378
13791379
/*
1380
-** WEBPAGE: test_env
1380
+** WEBPAGE: test-env
1381
+** WEBPAGE: test_env alias
13811382
**
13821383
** Display CGI-variables and other aspects of the run-time
13831384
** environment, for debugging and trouble-shooting purposes.
13841385
*/
13851386
void page_test_env(void){
@@ -1438,11 +1439,11 @@
14381439
**
14391440
** For administators, or if the test_env_enable setting is true, then
14401441
** details of the request environment are displayed. Otherwise, just
14411442
** the error message is shown.
14421443
**
1443
-** If zFormat is an empty string, then this is the /test_env page.
1444
+** If zFormat is an empty string, then this is the /test-env page.
14441445
*/
14451446
void webpage_error(const char *zFormat, ...){
14461447
int showAll = 0;
14471448
char *zErr = 0;
14481449
int isAuth = 0;
@@ -1538,11 +1539,11 @@
15381539
}
15391540
@ <hr>
15401541
P("HTTP_USER_AGENT");
15411542
P("SERVER_SOFTWARE");
15421543
cgi_print_all(showAll, 0, 0);
1543
- @ <p><form method="POST" action="%R/test_env">
1544
+ @ <p><form method="POST" action="%R/test-env">
15441545
@ <input type="hidden" name="showall" value="%d(showAll)">
15451546
@ <input type="submit" name="post-test-button" value="POST Test">
15461547
@ </form>
15471548
if( showAll && blob_size(&g.httpHeader)>0 ){
15481549
@ <hr>
15491550
--- src/style.c
+++ src/style.c
@@ -1375,11 +1375,12 @@
1375 @ </form>
1376 style_finish_page();
1377 }
1378
1379 /*
1380 ** WEBPAGE: test_env
 
1381 **
1382 ** Display CGI-variables and other aspects of the run-time
1383 ** environment, for debugging and trouble-shooting purposes.
1384 */
1385 void page_test_env(void){
@@ -1438,11 +1439,11 @@
1438 **
1439 ** For administators, or if the test_env_enable setting is true, then
1440 ** details of the request environment are displayed. Otherwise, just
1441 ** the error message is shown.
1442 **
1443 ** If zFormat is an empty string, then this is the /test_env page.
1444 */
1445 void webpage_error(const char *zFormat, ...){
1446 int showAll = 0;
1447 char *zErr = 0;
1448 int isAuth = 0;
@@ -1538,11 +1539,11 @@
1538 }
1539 @ <hr>
1540 P("HTTP_USER_AGENT");
1541 P("SERVER_SOFTWARE");
1542 cgi_print_all(showAll, 0, 0);
1543 @ <p><form method="POST" action="%R/test_env">
1544 @ <input type="hidden" name="showall" value="%d(showAll)">
1545 @ <input type="submit" name="post-test-button" value="POST Test">
1546 @ </form>
1547 if( showAll && blob_size(&g.httpHeader)>0 ){
1548 @ <hr>
1549
--- src/style.c
+++ src/style.c
@@ -1375,11 +1375,12 @@
1375 @ </form>
1376 style_finish_page();
1377 }
1378
1379 /*
1380 ** WEBPAGE: test-env
1381 ** WEBPAGE: test_env alias
1382 **
1383 ** Display CGI-variables and other aspects of the run-time
1384 ** environment, for debugging and trouble-shooting purposes.
1385 */
1386 void page_test_env(void){
@@ -1438,11 +1439,11 @@
1439 **
1440 ** For administators, or if the test_env_enable setting is true, then
1441 ** details of the request environment are displayed. Otherwise, just
1442 ** the error message is shown.
1443 **
1444 ** If zFormat is an empty string, then this is the /test-env page.
1445 */
1446 void webpage_error(const char *zFormat, ...){
1447 int showAll = 0;
1448 char *zErr = 0;
1449 int isAuth = 0;
@@ -1538,11 +1539,11 @@
1539 }
1540 @ <hr>
1541 P("HTTP_USER_AGENT");
1542 P("SERVER_SOFTWARE");
1543 cgi_print_all(showAll, 0, 0);
1544 @ <p><form method="POST" action="%R/test-env">
1545 @ <input type="hidden" name="showall" value="%d(showAll)">
1546 @ <input type="submit" name="post-test-button" value="POST Test">
1547 @ </form>
1548 if( showAll && blob_size(&g.httpHeader)>0 ){
1549 @ <hr>
1550

Keyboard Shortcuts

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