Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the "redirect: * URL" mechanism of CGI scripts. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
dd6b2987cd6fd4fd5db1e17484097001 |
| User & Date: | drh 2021-02-08 21:02:54.109 |
Context
|
2021-02-08
| ||
| 21:18 | Still more fixes to the "redirect: * URL" mechanism of CGI. ... (check-in: d6f9c566af user: drh tags: trunk) | |
| 21:02 | Fix the "redirect: * URL" mechanism of CGI scripts. ... (check-in: dd6b2987cd user: drh tags: trunk) | |
| 18:51 | When accessing using /draftN or /skn_X URL extensions, omit those extensions from the zBaseURL that is recorded in the config table. ... (check-in: acb4397ee5 user: drh tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
2046 2047 2048 2049 2050 2051 2052 |
*/
static void redirect_web_page(int nRedirect, char **azRedirect){
int i; /* Loop counter */
const char *zNotFound = 0; /* Not found URL */
const char *zName = P("name");
set_base_url(0);
if( zName==0 ){
| | | 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 |
*/
static void redirect_web_page(int nRedirect, char **azRedirect){
int i; /* Loop counter */
const char *zNotFound = 0; /* Not found URL */
const char *zName = P("name");
set_base_url(0);
if( zName==0 ){
zName = P("PATH_INFO");
if( zName && zName[0]=='/' ) zName++;
}
if( zName && validate16(zName, strlen(zName)) ){
for(i=0; i<nRedirect; i++){
if( fossil_strcmp(azRedirect[i*2],"*")==0 ){
zNotFound = azRedirect[i*2+1];
continue;
|
| ︙ | ︙ |