This commit is contained in:
Tobe O 2018-11-13 18:37:31 -05:00
parent 9f63ef57d9
commit bf8071d34c
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# 2.0.2
* Fixed invalid HTML for directory listings.
# 2.0.1
* Remove use of `sendFile`.
* Add a `p.isWithin` check to ensure that paths do not escape the `source` directory.

View file

@ -159,7 +159,7 @@ class VirtualDirectory {
..write(
'<head><meta name="viewport" content="width=device-width,initial-scale=1">')
..write('<style>ul { list-style-type: none; }</style>')
..write('</head></html><body>');
..write('</head><body>');
res.write('<li><a href="..">..</a></li>');

View file

@ -4,7 +4,7 @@ environment:
sdk: ">=1.8.0 <3.0.0"
homepage: https://github.com/angel-dart/static
author: Tobe O <thosakwe@gmail.com>
version: 2.0.1
version: 2.0.2
dependencies:
angel_framework: ^2.0.0-alpha
file: ^5.0.0