Diff
Not logged in

Differences From:

File src/xfer.c part of check-in [6b0b57a924] - Add logic to do a configuration push. Add logic to synchronize the CONCEALED table containing hidden email addresses (assuming appropriate permissions). Additional testng is needed; this check-in is to transfer the work to another machine. by drh on 2008-10-25 17:51:37. [view]

To:

File src/xfer.c part of check-in [31e94c0a04] - Get "configuration push" working. Fix bugs in concealed-field processing of tickets. by drh on 2008-10-25 20:43:28. [view]

@@ -391,9 +391,9 @@
       g.zLogin = mprintf("%b", pLogin);
       g.zNonce = mprintf("%b", pNonce);
     }
   }
-  db_reset(&q);
+  db_finalize(&q);
 }
 
 /*
 ** Send the content of all files in the unsent table.
@@ -721,9 +721,9 @@
       blob_zero(&content);
       blob_extract(xfer.pIn, size, &content);
       if( !g.okAdmin ){
         cgi_reset_content();
-        @ error not\sauthorized\sto\spush\sconfiguration\data
+        @ error not\sauthorized\sto\spush\sconfiguration
         nErr++;
         break;
       }
       if( zName[0]!='@' ){
@@ -1078,8 +1078,9 @@
         const char *zName = blob_str(&xfer.aToken[1]);
         Blob content;
         blob_zero(&content);
         blob_extract(xfer.pIn, size, &content);
+        g.okAdmin = g.okRdAddr = 1;
         if( configure_is_exportable(zName) & origConfigRcvMask ){
           if( zName[0]!='@' ){
             db_multi_exec(
                 "REPLACE INTO config(name,value) VALUES(%Q,%Q)",