Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Do not attempt to detect redirect loops. The client side will do that for us. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
810842f18fffe83f9c1e3928dd03382a |
User & Date: | drh 2019-01-21 18:34:35.865 |
Context
2019-01-21
| ||
20:04 | Improved robustness on the --args option. ... (check-in: 14c14021 user: drh tags: trunk) | |
18:34 | Do not attempt to detect redirect loops. The client side will do that for us. ... (check-in: 810842f1 user: drh tags: trunk) | |
18:28 | Enhance the "redirect-to-https" setting so that if it is 2 or more it forces all pages to travel of a secure connection. ... (check-in: 4aba9ea6 user: drh tags: trunk) | |
Changes
Changes to src/main.c.
︙ | ︙ | |||
1357 1358 1359 1360 1361 1362 1363 | ** insecure and if the redirect-to-https flag greater than or equal to ** iLevel. iLevel is 1 for /login pages and 2 for every other page. */ int fossil_redirect_to_https_if_needed(int iLevel){ if( fossil_wants_https(iLevel) ){ const char *zQS = P("QUERY_STRING"); char *zURL; | < < < < < < < < < < < < < < < | | | 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 | ** insecure and if the redirect-to-https flag greater than or equal to ** iLevel. iLevel is 1 for /login pages and 2 for every other page. */ int fossil_redirect_to_https_if_needed(int iLevel){ if( fossil_wants_https(iLevel) ){ const char *zQS = P("QUERY_STRING"); char *zURL; if( zQS==0 || zQS[0]==0 ){ zURL = mprintf("%s%T", g.zHttpsURL, P("PATH_INFO")); }else if( zQS[0]!=0 ){ zURL = mprintf("%s%T?%s", g.zHttpsURL, P("PATH_INFO"), zQS); } cgi_redirect_with_status(zURL, 301, "Moved Permanently"); return 1; } return 0; } |
︙ | ︙ |