Differences From Artifact [208b5cb3f6]:
- File src/skins.c — part of check-in [ca9156aa0a] at 2020-08-18 01:54:25 on branch sec2020 — Disable writes the CONFIG and USER tables by default. Permission to write to those tables is turned on as needed. Note - might have missed a few places so expect bugs. (user: drh size: 35469) [more...]
To Artifact [18eef7b4ab]:
- File src/skins.c — part of check-in [37c290597d] at 2020-08-30 06:05:06 on branch trunk — Add db_unprotect()/db_protect_pop() to /setup_skin_admin when the user selects one of the builtin skins to fix problem reported at [https://fossil-scm.org/forum/forumpost/72a1db2bdc | /forumpost/72a1db2bdc]. (user: stephan size: 35601)
| ︙ | |||
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 | 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 | + + + + |
}
}
seen = 0;
for(i=0; i<count(aBuiltinSkin); i++){
if( fossil_strcmp(aBuiltinSkin[i].zDesc, z)==0 ){
seen = 1;
zCurrent = aBuiltinSkin[i].zSQL;
db_unprotect(PROTECT_CONFIG);
db_multi_exec("%s", zCurrent/*safe-for-%s*/);
db_protect_pop();
break;
}
}
if( !seen ){
zName = skinVarName(z,0);
zCurrent = db_get(zName, 0);
db_unprotect(PROTECT_CONFIG);
db_multi_exec("%s", zCurrent/*safe-for-%s*/);
db_protect_pop();
}
}
}
style_header("Skins");
if( zErr ){
@ <p style="color:red">%h(zErr)</p>
|
| ︙ |