Fossil

Check-in [58f15e92ae]
Login

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

Overview
Comment:Disable SQL restrictions as soon as the user-supplied report-generator SQL has been parsed, so that other queries that run during report rendering and run unimpeded. Ticket [c666e737cb028bcec2d55659d79ce8521355d2bf]
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 58f15e92aecf31289734e73815006d1b965a2a57
User & Date: drh 2009-01-08 14:05:50.000
References
2009-01-08
14:06 Fixed ticket [c666e737cb]: bad web page formatting if baseline ID included in bug text plus 2 other changes ... (artifact: e53c3e4bcb user: drh)
Context
2009-01-10
13:16
Update SQLite to the latest code (just prior to 3.6.8). ... (check-in: ed28f6e76d user: drh tags: trunk)
2009-01-08
14:05
Disable SQL restrictions as soon as the user-supplied report-generator SQL has been parsed, so that other queries that run during report rendering and run unimpeded. Ticket [c666e737cb028bcec2d55659d79ce8521355d2bf] ... (check-in: 58f15e92ae user: drh tags: trunk)
2009-01-07
22:45
adjust reference.wiki &c. ... (check-in: c8b86eae78 user: kejoki tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/report.c.
675
676
677
678
679
680
681





682
683
684
685
686
687
688
  /* Get the report number
  */
  rn = pState->rn;

  /* Do initialization
  */
  if( pState->nCount==0 ){





    /* Figure out the number of columns, the column that determines background
    ** color, and whether or not this row of data is represented by multiple
    ** rows in the table.
    */
    pState->nCol = 0;
    pState->isMultirow = 0;
    pState->iNewRow = -1;







>
>
>
>
>







675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
  /* Get the report number
  */
  rn = pState->rn;

  /* Do initialization
  */
  if( pState->nCount==0 ){
    /* Turn off the authorizer.  It is no longer doing anything since the
    ** query has already been prepared.
    */
    sqlite3_set_authorizer(g.db, 0, 0);

    /* Figure out the number of columns, the column that determines background
    ** color, and whether or not this row of data is represented by multiple
    ** rows in the table.
    */
    pState->nCol = 0;
    pState->isMultirow = 0;
    pState->iNewRow = -1;