Fossil

Check-in [10f9624207]
Login

Check-in [10f9624207]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:For the --page option to the "fossil ui" command, ignore any initial leading "/" on the page name.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 10f962420717ccb91c2970a589689f9f3f5559579b5797d03bf52d36fbd179b9
User & Date: drh 2021-07-06 15:58:47.530
Context
2021-07-06
16:31
Fix the previous check-in so that it works even when the --page option is omitted. ... (check-in: 6d178fa90f user: drh tags: trunk)
15:58
For the --page option to the "fossil ui" command, ignore any initial leading "/" on the page name. ... (check-in: 10f9624207 user: drh tags: trunk)
15:46
Enhance the blob_eq() macro to help ensure that its second argument is a string literal, not a pointer. ... (check-in: d6477def97 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
2936
2937
2938
2939
2940
2941
2942

2943
2944
2945
2946
2947
2948
2949
#endif
  g.useLocalauth = find_option("localauth", 0, 0)!=0;
  Th_InitTraceLog();
  zPort = find_option("port", "P", 1);
  isUiCmd = g.argv[1][0]=='u';
  if( isUiCmd ){
    zInitPage = find_option("page", 0, 1);

    zFossilCmd = find_option("fossilcmd", 0, 1);
  }
  zNotFound = find_option("notfound", 0, 1);
  allowRepoList = find_option("repolist",0,0)!=0;
  if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
  zAltBase = find_option("baseurl", 0, 1);
  fCreate = find_option("create",0,0)!=0;







>







2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
#endif
  g.useLocalauth = find_option("localauth", 0, 0)!=0;
  Th_InitTraceLog();
  zPort = find_option("port", "P", 1);
  isUiCmd = g.argv[1][0]=='u';
  if( isUiCmd ){
    zInitPage = find_option("page", 0, 1);
    if( zInitPage[0]=='/' ) zInitPage++;
    zFossilCmd = find_option("fossilcmd", 0, 1);
  }
  zNotFound = find_option("notfound", 0, 1);
  allowRepoList = find_option("repolist",0,0)!=0;
  if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
  zAltBase = find_option("baseurl", 0, 1);
  fCreate = find_option("create",0,0)!=0;