702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
|
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
|
-
+
|
}
}
@ see also the list of
@ <a href="help">available commands</a> in fossil
@ version %s(MANIFEST_VERSION" "MANIFEST_DATE) UTC
}else{
int nCol, nRow, i, ignored, cnt, showTest;
/* detect, if we show normal or test commands */
showTest = ( zCmd && !strncmp(zCmd,"test",4) );
for( i=0,ignored=0; i<count(aCommand); i++){
if( (strncmp(aCommand[i].zName,"test",4)==0) ^ showTest ) ignored++;
}
nCol = 4;
nRow = (count(aCommand)-ignored+nCol-1)/nCol;
|
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
|
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
|
-
+
|
while( zPathInfo[i] && zPathInfo[i]!='/' ){ i++; }
zRepo = mprintf("%s%.*s.fossil",g.zRepositoryName,i,zPathInfo);
/* To avoid mischief, make sure the repository basename contains no
** characters other than alphanumerics, "-", and "_".
*/
for(j=strlen(g.zRepositoryName)+1, k=0; k<i-1; j++, k++){
if( !isalnum(zRepo[j]) && zRepo[j]!='-' ) zRepo[j] = '_';
if( !fossil_isalnum(zRepo[j]) && zRepo[j]!='-' ) zRepo[j] = '_';
}
if( zRepo[0]=='/' && zRepo[1]=='/' ) zRepo++;
if( file_size(zRepo)<1024 ){
if( zNotFound ){
cgi_redirect(zNotFound);
}else{
|