Annotation of parser3/tests/results/460.processed, revision 1.2
1.1 moko 1: Content-Type: text/html
1.2 ! moko 2: Content-Length: 1648
1.1 moko 3:
4: tainted backslash:
5: save, the whole name tainted: 460_dir/a.txt
6: save, the directory tainted: 460_dir/b.txt
7: -f: yes
8: load: text
9: list: a.txt,b.txt
10: delete removes the directory: removed
11: the slash keeps the language of the backslash: json escapes it, as it does with any tainted one: /tests/<\/script>.gif
12: the name of a file is cut at the last separator: b.txt
13: tainted path scheme:
14: file://: Exception: tainted path scheme
15: http://: Exception: tainted path scheme
16: partly tainted: Exception: tainted path scheme
17: tainted after the scheme: /tests/460.html
18: as-is: /tests/460.html
19: tainted file:// without errors:
20: -f of an existing file: no
21: -d of an existing directory: no
22: find of an existing file: not found
23: delete with exception(false) leaves the file: kept
24: the scheme stays tainted through string functions:
25: unescape: Exception: tainted path scheme
26: table cell: Exception: tainted path scheme
27: base64 decode: Exception: tainted path scheme
28: lower: Exception: tainted path scheme
29: replace: Exception: tainted path scheme
30: split and join: Exception: tainted path scheme
31: match: Exception: tainted path scheme
32: hash key always tainted: Exception: tainted path scheme
33: document-root with a backslash:
34: the backslash is kept: <root>\tests
35: and is a separator: a relative name is inside the root: /x.gif vs /tests/x.gif before
1.2 ! moko 36: diskpath of a web path: <root>/tests/x.gif
! 37: diskpath of file://: <root>/tests/x.gif
1.1 moko 38: document-root with a char escaped in file names:
39: the char is replaced: <root>_7Ctests
40: a relative name is outside the root: Exception: is outside of $request:document-root [<root>_7Ctests]
1.2 ! moko 41: diskpath of a web path: <root>_7Ctests/x.gif
E-mail: