Fossil SCM
Somehow, part of previous change got lost
Commit
92725735119d221cd9844d879607da6d8f9a0e59
Parent
b59dc078187891d…
1 file changed
+2
-2
+2
-2
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -481,11 +481,11 @@ | ||
| 481 | 481 | ** a file in a repository. Valid filenames follow all of the |
| 482 | 482 | ** following rules: |
| 483 | 483 | ** |
| 484 | 484 | ** * Does not begin with "/" |
| 485 | 485 | ** * 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: "\" | |
| 487 | 487 | ** * Does not end with "/". |
| 488 | 488 | ** * Does not contain two or more "/" characters in a row. |
| 489 | 489 | ** * Contains at least one character |
| 490 | 490 | */ |
| 491 | 491 | int file_is_simple_pathname(const char *z){ |
| @@ -495,11 +495,11 @@ | ||
| 495 | 495 | if( c=='.' ){ |
| 496 | 496 | if( z[1]=='/' || z[1]==0 ) return 0; |
| 497 | 497 | if( z[1]=='.' && (z[2]=='/' || z[2]==0) ) return 0; |
| 498 | 498 | } |
| 499 | 499 | for(i=0; (c=z[i])!=0; i++){ |
| 500 | - if( c=='\\' || c=='*' || c=='[' || c==']' || c=='?' ){ | |
| 500 | + if( c=='\\' ){ | |
| 501 | 501 | return 0; |
| 502 | 502 | } |
| 503 | 503 | if( c=='/' ){ |
| 504 | 504 | if( z[i+1]=='/' ) return 0; |
| 505 | 505 | if( z[i+1]=='.' ){ |
| 506 | 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=='\\' || 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 |