Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | The 'g.zHttpsURL' variable should be populated even when the --baseurl option is used. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4110f52297205596b153176fc83fb774 |
| User & Date: | mistachkin 2016-02-01 20:36:45.776 |
Context
|
2016-02-01
| ||
| 20:38 | Add --https and --nossl options to the 'server' command. check-in: b8c7af5bd9 user: mistachkin tags: trunk | |
| 20:36 | The 'g.zHttpsURL' variable should be populated even when the --baseurl option is used. check-in: 4110f52297 user: mistachkin tags: trunk | |
| 20:35 | Having the 'setup' or 'admin' permission should imply having the 'delete' and 'private' permissions as well (i.e. since they can change their own permissions anyhow). check-in: b241130222 user: mistachkin tags: trunk | |
| 20:22 | Use strncmp() instead of memcmp(). Closed-Leaf check-in: ffd5e09ec7 user: mistachkin tags: httpsBaseUrl | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
1395 1396 1397 1398 1399 1400 1401 |
const char *zMode;
const char *zCur;
if( g.zBaseURL!=0 ) return;
if( zAltBase ){
int i, n, c;
g.zTop = g.zBaseURL = mprintf("%s", zAltBase);
| | > > > > > > | 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 |
const char *zMode;
const char *zCur;
if( g.zBaseURL!=0 ) return;
if( zAltBase ){
int i, n, c;
g.zTop = g.zBaseURL = mprintf("%s", zAltBase);
if( strncmp(g.zTop, "http://", 7)==0 ){
/* it is HTTP, replace prefix with HTTPS. */
g.zHttpsURL = mprintf("https://%s", &g.zTop[7]);
}else if( strncmp(g.zTop, "https://", 8)==0 ){
/* it is already HTTPS, use it. */
g.zHttpsURL = mprintf("%s", g.zTop);
}else{
fossil_fatal("argument to --baseurl should be 'http://host/path'"
" or 'https://host/path'");
}
for(i=n=0; (c = g.zTop[i])!=0; i++){
if( c=='/' ){
n++;
if( n==3 ){
|
| ︙ | ︙ |