Fossil SCM
For the --page option to the "fossil ui" command, ignore any initial leading "/" on the page name.
Commit
10f962420717ccb91c2970a589689f9f3f5559579b5797d03bf52d36fbd179b9
Parent
d6477def971855f…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2938,10 +2938,11 @@ | ||
| 2938 | 2938 | Th_InitTraceLog(); |
| 2939 | 2939 | zPort = find_option("port", "P", 1); |
| 2940 | 2940 | isUiCmd = g.argv[1][0]=='u'; |
| 2941 | 2941 | if( isUiCmd ){ |
| 2942 | 2942 | zInitPage = find_option("page", 0, 1); |
| 2943 | + if( zInitPage[0]=='/' ) zInitPage++; | |
| 2943 | 2944 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 2944 | 2945 | } |
| 2945 | 2946 | zNotFound = find_option("notfound", 0, 1); |
| 2946 | 2947 | allowRepoList = find_option("repolist",0,0)!=0; |
| 2947 | 2948 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 2948 | 2949 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2938,10 +2938,11 @@ | |
| 2938 | Th_InitTraceLog(); |
| 2939 | zPort = find_option("port", "P", 1); |
| 2940 | isUiCmd = g.argv[1][0]=='u'; |
| 2941 | if( isUiCmd ){ |
| 2942 | zInitPage = find_option("page", 0, 1); |
| 2943 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 2944 | } |
| 2945 | zNotFound = find_option("notfound", 0, 1); |
| 2946 | allowRepoList = find_option("repolist",0,0)!=0; |
| 2947 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 2948 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2938,10 +2938,11 @@ | |
| 2938 | Th_InitTraceLog(); |
| 2939 | zPort = find_option("port", "P", 1); |
| 2940 | isUiCmd = g.argv[1][0]=='u'; |
| 2941 | if( isUiCmd ){ |
| 2942 | zInitPage = find_option("page", 0, 1); |
| 2943 | if( zInitPage[0]=='/' ) zInitPage++; |
| 2944 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 2945 | } |
| 2946 | zNotFound = find_option("notfound", 0, 1); |
| 2947 | allowRepoList = find_option("repolist",0,0)!=0; |
| 2948 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 2949 |