Differences From:
File
src/main.c
part of check-in
[1e9c0e287e]
- Test commands for importing and exporting ticket configurations.
by
drh on
2007-10-03 12:20:00.
[view]
To:
File
src/main.c
part of check-in
[9f89a8e68e]
- Fix the wiki editor so that it can handle wiki page names that
include spaces.
by
drh on
2007-10-10 15:21:53.
[view]
@@ -482,17 +482,18 @@
for(i=1; zPath[i] && zPath[i]!='/'; i++){}
if( zPath[i]=='/' ){
zPath[i] = 0;
g.zExtra = &zPath[i+1];
-
+ }else{
+ g.zExtra = 0;
+ }
+ g.zBaseURL = get_base_url();
+ if( g.zExtra ){
/* CGI parameters get this treatment elsewhere, but places like getfile
** will use g.zExtra directly.
*/
dehttpize(g.zExtra);
- }else{
- g.zExtra = 0;
- }
- g.zBaseURL = get_base_url();
+ }
/* Prevent robots from indexing this site.
*/
if( strcmp(g.zPath, "robots.txt")==0 ){