Fossil SCM

Allow read access to fx_* tables in report_query_authorizer().

joel 2013-10-31 06:03 trunk
Commit dda5b18b0dd67c680ea01cef07ce25e94413bdf9
1 file changed +3
--- src/report.c
+++ src/report.c
@@ -183,10 +183,13 @@
183183
"event",
184184
"tag",
185185
"tagxref",
186186
};
187187
int i;
188
+ if( fossil_strncmp(zArg1, "fx_", 3)==0 ){
189
+ break;
190
+ }
188191
for(i=0; i<sizeof(azAllowed)/sizeof(azAllowed[0]); i++){
189192
if( fossil_stricmp(zArg1, azAllowed[i])==0 ) break;
190193
}
191194
if( i>=sizeof(azAllowed)/sizeof(azAllowed[0]) ){
192195
*(char**)pError = mprintf("access to table \"%s\" is restricted",zArg1);
193196
--- 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

Keyboard Shortcuts

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