Fossil SCM

Change the default value for the "vuln-report" setting to "block".

drh 2026-08-06 12:57 UTC trunk
Commit 9dd7f23116dda15cfc38fd7bc35c6177e7feacbbe12ca0b2cf1f198a386a426d
1 file changed +2 -2
+2 -2
--- src/th_main.c
+++ src/th_main.c
@@ -3005,11 +3005,11 @@
30053005
** recursive calls.
30063006
*/;
30073007
}
30083008
30093009
/*
3010
-** SETTING: vuln-report width=8 default=log
3010
+** SETTING: vuln-report width=8 default=block
30113011
**
30123012
** This setting controls Fossil's behavior when it encounters a potential
30133013
** XSS or SQL-injection vulnerability due to misuse of TH1 configuration
30143014
** scripts. Choices are:
30153015
**
@@ -3039,11 +3039,11 @@
30393039
int nStr /* Length of the tainted string */
30403040
){
30413041
static const char *zDisp = 0; /* Dispensation; what to do with the error */
30423042
const char *zVulnType; /* Type of vulnerability */
30433043
3044
- if( zDisp==0 ) zDisp = db_get("vuln-report","log");
3044
+ if( zDisp==0 ) zDisp = db_get("vuln-report","block");
30453045
if( is_false(zDisp) ) return 0;
30463046
if( strstr(zWhere,"SQL")!=0 ){
30473047
zVulnType = "SQL-injection";
30483048
}else{
30493049
zVulnType = "XSS";
30503050
--- src/th_main.c
+++ src/th_main.c
@@ -3005,11 +3005,11 @@
3005 ** recursive calls.
3006 */;
3007 }
3008
3009 /*
3010 ** SETTING: vuln-report width=8 default=log
3011 **
3012 ** This setting controls Fossil's behavior when it encounters a potential
3013 ** XSS or SQL-injection vulnerability due to misuse of TH1 configuration
3014 ** scripts. Choices are:
3015 **
@@ -3039,11 +3039,11 @@
3039 int nStr /* Length of the tainted string */
3040 ){
3041 static const char *zDisp = 0; /* Dispensation; what to do with the error */
3042 const char *zVulnType; /* Type of vulnerability */
3043
3044 if( zDisp==0 ) zDisp = db_get("vuln-report","log");
3045 if( is_false(zDisp) ) return 0;
3046 if( strstr(zWhere,"SQL")!=0 ){
3047 zVulnType = "SQL-injection";
3048 }else{
3049 zVulnType = "XSS";
3050
--- src/th_main.c
+++ src/th_main.c
@@ -3005,11 +3005,11 @@
3005 ** recursive calls.
3006 */;
3007 }
3008
3009 /*
3010 ** SETTING: vuln-report width=8 default=block
3011 **
3012 ** This setting controls Fossil's behavior when it encounters a potential
3013 ** XSS or SQL-injection vulnerability due to misuse of TH1 configuration
3014 ** scripts. Choices are:
3015 **
@@ -3039,11 +3039,11 @@
3039 int nStr /* Length of the tainted string */
3040 ){
3041 static const char *zDisp = 0; /* Dispensation; what to do with the error */
3042 const char *zVulnType; /* Type of vulnerability */
3043
3044 if( zDisp==0 ) zDisp = db_get("vuln-report","block");
3045 if( is_false(zDisp) ) return 0;
3046 if( strstr(zWhere,"SQL")!=0 ){
3047 zVulnType = "SQL-injection";
3048 }else{
3049 zVulnType = "XSS";
3050

Keyboard Shortcuts

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