Fossil SCM

Show the command-line on the security-audit page.

drh 2023-03-10 18:13 trunk
Commit 5ab5469adf29bfa212283f7bf1acfbf140d9d391ae3757305f8d686b030c88bd
1 file changed +10 -1
--- src/security_audit.c
+++ src/security_audit.c
@@ -101,11 +101,11 @@
101101
const char *zPubPages; /* GLOB pattern for public pages */
102102
const char *zSelfCap; /* Capabilities of self-registered users */
103103
int hasSelfReg = 0; /* True if able to self-register */
104104
const char *zPublicUrl; /* Canonical access URL */
105105
char *z;
106
- int n;
106
+ int n, i;
107107
CapabilityString *pCap;
108108
char **azCSP; /* Parsed content security policy */
109109
110110
login_check_credentials();
111111
if( !g.perm.Admin ){
@@ -692,10 +692,19 @@
692692
@ </p>
693693
table_of_public_phantoms();
694694
@ </li>
695695
}
696696
697
+ @ <li><p>
698
+ @ The command that generated this page was:
699
+ @ <blockquote>
700
+ for(i=0; i<g.argc; i++){
701
+ @ %h(g.argv[i]) \
702
+ }
703
+ @
704
+ @ </blockquote></li>
705
+
697706
@ </ol>
698707
style_finish_page();
699708
}
700709
701710
/*
702711
--- src/security_audit.c
+++ src/security_audit.c
@@ -101,11 +101,11 @@
101 const char *zPubPages; /* GLOB pattern for public pages */
102 const char *zSelfCap; /* Capabilities of self-registered users */
103 int hasSelfReg = 0; /* True if able to self-register */
104 const char *zPublicUrl; /* Canonical access URL */
105 char *z;
106 int n;
107 CapabilityString *pCap;
108 char **azCSP; /* Parsed content security policy */
109
110 login_check_credentials();
111 if( !g.perm.Admin ){
@@ -692,10 +692,19 @@
692 @ </p>
693 table_of_public_phantoms();
694 @ </li>
695 }
696
 
 
 
 
 
 
 
 
 
697 @ </ol>
698 style_finish_page();
699 }
700
701 /*
702
--- src/security_audit.c
+++ src/security_audit.c
@@ -101,11 +101,11 @@
101 const char *zPubPages; /* GLOB pattern for public pages */
102 const char *zSelfCap; /* Capabilities of self-registered users */
103 int hasSelfReg = 0; /* True if able to self-register */
104 const char *zPublicUrl; /* Canonical access URL */
105 char *z;
106 int n, i;
107 CapabilityString *pCap;
108 char **azCSP; /* Parsed content security policy */
109
110 login_check_credentials();
111 if( !g.perm.Admin ){
@@ -692,10 +692,19 @@
692 @ </p>
693 table_of_public_phantoms();
694 @ </li>
695 }
696
697 @ <li><p>
698 @ The command that generated this page was:
699 @ <blockquote>
700 for(i=0; i<g.argc; i++){
701 @ %h(g.argv[i]) \
702 }
703 @
704 @ </blockquote></li>
705
706 @ </ol>
707 style_finish_page();
708 }
709
710 /*
711

Keyboard Shortcuts

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