Fossil SCM
Allow read access to fx_* tables in report_query_authorizer().
Commit
dda5b18b0dd67c680ea01cef07ce25e94413bdf9
Parent
b725c1cf266b766…
1 file changed
+3
+3
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -183,10 +183,13 @@ | ||
| 183 | 183 | "event", |
| 184 | 184 | "tag", |
| 185 | 185 | "tagxref", |
| 186 | 186 | }; |
| 187 | 187 | int i; |
| 188 | + if( fossil_strncmp(zArg1, "fx_", 3)==0 ){ | |
| 189 | + break; | |
| 190 | + } | |
| 188 | 191 | for(i=0; i<sizeof(azAllowed)/sizeof(azAllowed[0]); i++){ |
| 189 | 192 | if( fossil_stricmp(zArg1, azAllowed[i])==0 ) break; |
| 190 | 193 | } |
| 191 | 194 | if( i>=sizeof(azAllowed)/sizeof(azAllowed[0]) ){ |
| 192 | 195 | *(char**)pError = mprintf("access to table \"%s\" is restricted",zArg1); |
| 193 | 196 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -183,10 +183,13 @@ | |
| 183 | "event", |
| 184 | "tag", |
| 185 | "tagxref", |
| 186 | }; |
| 187 | int i; |
| 188 | for(i=0; i<sizeof(azAllowed)/sizeof(azAllowed[0]); i++){ |
| 189 | if( fossil_stricmp(zArg1, azAllowed[i])==0 ) break; |
| 190 | } |
| 191 | if( i>=sizeof(azAllowed)/sizeof(azAllowed[0]) ){ |
| 192 | *(char**)pError = mprintf("access to table \"%s\" is restricted",zArg1); |
| 193 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -183,10 +183,13 @@ | |
| 183 | "event", |
| 184 | "tag", |
| 185 | "tagxref", |
| 186 | }; |
| 187 | int i; |
| 188 | if( fossil_strncmp(zArg1, "fx_", 3)==0 ){ |
| 189 | break; |
| 190 | } |
| 191 | for(i=0; i<sizeof(azAllowed)/sizeof(azAllowed[0]); i++){ |
| 192 | if( fossil_stricmp(zArg1, azAllowed[i])==0 ) break; |
| 193 | } |
| 194 | if( i>=sizeof(azAllowed)/sizeof(azAllowed[0]) ){ |
| 195 | *(char**)pError = mprintf("access to table \"%s\" is restricted",zArg1); |
| 196 |