Changeset 8268f76 in trunk


Ignore:
Timestamp:
2020-04-18T07:52:17Z (5 years ago)
Author:
meejah <meejah@…>
Branches:
master
Children:
d26ce3b
Parents:
e894795
git-author:
meejah <meejah@…> (2019-10-13 10:11:24)
git-committer:
meejah <meejah@…> (2020-04-18 07:52:17)
Message:

quote output, render GET

Location:
src/allmydata/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/web/filenode.py

    re894795 r8268f76  
    153153            raise WebError(
    154154                u"Cannot create directory {}, because its "
    155                 u"parent is a file, not a directory".format(name)
     155                u"parent is a file, not a directory".format(
     156                    quote_output(name, encoding='utf-8')
     157                )
    156158            )
    157159        raise WebError(
    158             "Files have no children named {}".format(
     160            u"Files have no children named {}".format(
    159161                quote_output(name, encoding='utf-8'),
    160162            )
  • TabularUnified src/allmydata/web/root.py

    re894795 r8268f76  
    167167        return filenode.FileNodeDownloadHandler(self.client, node)
    168168
    169     def renderHTTP(self, ctx):
     169    def render_GET(self, ctx):
    170170        raise WebError("/file must be followed by a file-cap and a name",
    171171                       http.NOT_FOUND)
Note: See TracChangeset for help on using the changeset viewer.