Fossil

Check-in [dda5b18b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Allow read access to fx_* tables in report_query_authorizer().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:dda5b18b0dd67c680ea01cef07ce25e94413bdf9
User & Date: joel 2013-10-31 06:03:54
References
2013-10-31
15:51 New ticket [18cff45a] extras command not finding new files. artifact: bc99ae20 user: anonymous
Context
2013-11-07
13:29
Use fossil_getenv/fossil_fopen in stead of getenv/fopen in a few places, so on Win32 non-ASCII characters in filenames and environment variable values are handled correctly. For shell.c this must be handled by the makefiles, because this file comes from SQLite. check-in: aab8ce2f user: jan.nijtmans tags: trunk
2013-11-01
05:14
Prompt to remember password when password is embedded in URL. Also improve password failure prompting during clone/sync operations. check-in: 1ccbb651 user: andybradford tags: url-password-fixes
2013-10-31
14:41
Merge from trunk. Closed-Leaf check-in: bbebf709 user: dg tags: dg-misc
11:00
Suggested implementation for [1ec9e8658e]: Flag some commits for "extra attention" Leaf check-in: 13ba9a50 user: jan.nijtmans tags: rfe-1ec9e8658e
06:03
Allow read access to fx_* tables in report_query_authorizer(). check-in: dda5b18b user: joel tags: trunk
2013-10-30
09:11
Make "fossil add", "fossil addremove", "fossil update" and "fossil co --latest" work when the repository doesn't contain any commit yet. This is not a fatal situation at all. check-in: b725c1cf user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/report.c.

181
182
183
184
185
186
187



188
189
190
191
192
193
194
         "mlink",
         "plink",
         "event",
         "tag",
         "tagxref",
      };
      int i;



      for(i=0; i<sizeof(azAllowed)/sizeof(azAllowed[0]); i++){
        if( fossil_stricmp(zArg1, azAllowed[i])==0 ) break;
      }
      if( i>=sizeof(azAllowed)/sizeof(azAllowed[0]) ){
        *(char**)pError = mprintf("access to table \"%s\" is restricted",zArg1);
        rc = SQLITE_DENY;
      }else if( !g.perm.RdAddr && strncmp(zArg2, "private_", 8)==0 ){







>
>
>







181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
         "mlink",
         "plink",
         "event",
         "tag",
         "tagxref",
      };
      int i;
      if( fossil_strncmp(zArg1, "fx_", 3)==0 ){
        break;
      }
      for(i=0; i<sizeof(azAllowed)/sizeof(azAllowed[0]); i++){
        if( fossil_stricmp(zArg1, azAllowed[i])==0 ) break;
      }
      if( i>=sizeof(azAllowed)/sizeof(azAllowed[0]) ){
        *(char**)pError = mprintf("access to table \"%s\" is restricted",zArg1);
        rc = SQLITE_DENY;
      }else if( !g.perm.RdAddr && strncmp(zArg2, "private_", 8)==0 ){