Check-in [95e735165e]
Not logged in

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

Overview
Comment:Allow the setup pages to change email-send-method.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 95e735165e8cb2d5ae5ca2f9e5acd71e15468da01cad5d167217fa4b58600bcf
User & Date: drh 2020-09-10 18:15:20.990
Context
2020-09-10
21:51
Fix misplaced / missing db_unprotect() calls in the 'waliassetup' and 'setup_logo' pages. check-in: f273832a73 user: mistachkin tags: trunk
18:15
Allow the setup pages to change email-send-method. check-in: 95e735165e user: drh tags: trunk
17:18
Replace the last separate SVG file in branching.wiki with in-line Pikchr. Also update pikchr.c to fix missing required whitespaces in the generated circle and ellipse markup. check-in: 9ec0ccee33 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/setup.c.
303
304
305
306
307
308
309

310
311

312
313
314
315
316
317
318
){
  const char *z = db_get(zVar, zDflt);
  const char *zQ = P(zQP);
  int i;
  if( zQ && fossil_strcmp(zQ,z)!=0){
    const int nZQ = (int)strlen(zQ);
    login_verify_csrf_secret();

    db_set(zVar, zQ, 0);
    setup_incr_cfgcnt();

    admin_log("Set multiple_choice_attribute %Q to: %.*s%s",
              zVar, 20, zQ, (nZQ>20 ? "..." : ""));
    z = zQ;
  }
  @ <select aria-label="%h(zLabel)" size="1" name="%s(zQP)" id="id%s(zQP)">
  for(i=0; i<nChoice*2; i+=2){
    const char *zSel = fossil_strcmp(azChoice[i],z)==0 ? " selected" : "";







>


>







303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
){
  const char *z = db_get(zVar, zDflt);
  const char *zQ = P(zQP);
  int i;
  if( zQ && fossil_strcmp(zQ,z)!=0){
    const int nZQ = (int)strlen(zQ);
    login_verify_csrf_secret();
    db_unprotect(PROTECT_ALL);
    db_set(zVar, zQ, 0);
    setup_incr_cfgcnt();
    db_protect_pop();
    admin_log("Set multiple_choice_attribute %Q to: %.*s%s",
              zVar, 20, zQ, (nZQ>20 ? "..." : ""));
    z = zQ;
  }
  @ <select aria-label="%h(zLabel)" size="1" name="%s(zQP)" id="id%s(zQP)">
  for(i=0; i<nChoice*2; i+=2){
    const char *zSel = fossil_strcmp(azChoice[i],z)==0 ? " selected" : "";