Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | update wrong comment |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
39807cdf0c66fea3bde7347953182d40 |
| User & Date: | jan.nijtmans 2012-12-01 09:53:07.733 |
Context
|
2012-12-01
| ||
| 20:17 | Add mimetype mappings for .docx, .pptx, and .xlsx. check-in: 4e23c42f7e user: drh tags: trunk | |
| 09:53 | update wrong comment check-in: 39807cdf0c user: jan.nijtmans tags: trunk | |
| 04:49 | Update the documentation on the "fossil http" and "fossil server" commands to talk about restrictions on filenames and to describe how static content files can be returned. check-in: 99ab9fb47c user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
482 483 484 485 486 487 488 | /* ** Return true if the filename given is a valid filename for ** a file in a repository. Valid filenames follow all of the ** following rules: ** ** * Does not begin with "/" ** * Does not contain any path element named "." or ".." | | | 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 |
/*
** Return true if the filename given is a valid filename for
** a file in a repository. Valid filenames follow all of the
** following rules:
**
** * Does not begin with "/"
** * Does not contain any path element named "." or ".."
** * Does not contain any of these characters in the path: "\"
** * Does not end with "/".
** * Does not contain two or more "/" characters in a row.
** * Contains at least one character
*/
int file_is_simple_pathname(const char *z){
int i;
char c = z[0];
|
| ︙ | ︙ |