Fossil SCM

Somehow, part of previous change got lost

jan.nijtmans 2012-11-21 09:20 ticket-d17d6e5b17
Commit 92725735119d221cd9844d879607da6d8f9a0e59
1 file changed +2 -2
+2 -2
--- src/file.c
+++ src/file.c
@@ -481,11 +481,11 @@
481481
** a file in a repository. Valid filenames follow all of the
482482
** following rules:
483483
**
484484
** * Does not begin with "/"
485485
** * Does not contain any path element named "." or ".."
486
-** * Does not contain any of these characters in the path: "\*[]?"
486
+** * Does not contain any of these characters in the path: "\"
487487
** * Does not end with "/".
488488
** * Does not contain two or more "/" characters in a row.
489489
** * Contains at least one character
490490
*/
491491
int file_is_simple_pathname(const char *z){
@@ -495,11 +495,11 @@
495495
if( c=='.' ){
496496
if( z[1]=='/' || z[1]==0 ) return 0;
497497
if( z[1]=='.' && (z[2]=='/' || z[2]==0) ) return 0;
498498
}
499499
for(i=0; (c=z[i])!=0; i++){
500
- if( c=='\\' || c=='*' || c=='[' || c==']' || c=='?' ){
500
+ if( c=='\\' ){
501501
return 0;
502502
}
503503
if( c=='/' ){
504504
if( z[i+1]=='/' ) return 0;
505505
if( z[i+1]=='.' ){
506506
--- src/file.c
+++ src/file.c
@@ -481,11 +481,11 @@
481 ** a file in a repository. Valid filenames follow all of the
482 ** following rules:
483 **
484 ** * Does not begin with "/"
485 ** * Does not contain any path element named "." or ".."
486 ** * Does not contain any of these characters in the path: "\*[]?"
487 ** * Does not end with "/".
488 ** * Does not contain two or more "/" characters in a row.
489 ** * Contains at least one character
490 */
491 int file_is_simple_pathname(const char *z){
@@ -495,11 +495,11 @@
495 if( c=='.' ){
496 if( z[1]=='/' || z[1]==0 ) return 0;
497 if( z[1]=='.' && (z[2]=='/' || z[2]==0) ) return 0;
498 }
499 for(i=0; (c=z[i])!=0; i++){
500 if( c=='\\' || c=='*' || c=='[' || c==']' || c=='?' ){
501 return 0;
502 }
503 if( c=='/' ){
504 if( z[i+1]=='/' ) return 0;
505 if( z[i+1]=='.' ){
506
--- src/file.c
+++ src/file.c
@@ -481,11 +481,11 @@
481 ** a file in a repository. Valid filenames follow all of the
482 ** following rules:
483 **
484 ** * Does not begin with "/"
485 ** * Does not contain any path element named "." or ".."
486 ** * Does not contain any of these characters in the path: "\"
487 ** * Does not end with "/".
488 ** * Does not contain two or more "/" characters in a row.
489 ** * Contains at least one character
490 */
491 int file_is_simple_pathname(const char *z){
@@ -495,11 +495,11 @@
495 if( c=='.' ){
496 if( z[1]=='/' || z[1]==0 ) return 0;
497 if( z[1]=='.' && (z[2]=='/' || z[2]==0) ) return 0;
498 }
499 for(i=0; (c=z[i])!=0; i++){
500 if( c=='\\' ){
501 return 0;
502 }
503 if( c=='/' ){
504 if( z[i+1]=='/' ) return 0;
505 if( z[i+1]=='.' ){
506

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button