]> granicus.if.org Git - esp-idf/commit
File Server Example : Check longer than allowed filenames when converting from URIs...
authorAnurag Kar <anurag.kar@espressif.com>
Thu, 25 Apr 2019 19:58:33 +0000 (01:28 +0530)
committerAnurag Kar <anurag.kar@espressif.com>
Mon, 29 Apr 2019 06:49:59 +0000 (12:19 +0530)
commit59afbe4eed3033450a2bfc17beec38fedf9bf04c
tree99ce75f8637f2f6e5d9db359b50aff2becb5c7fd
parentdf9113e0e18390aa8d82e4db5388c4165b619d35
File Server Example : Check longer than allowed filenames when converting from URIs to filepaths

This change prevents buffer overflows in case of really long file paths.

Other changes:
* Remove query (?) and fragment (#) component from URI when converting to file path
* /index.html and favicon.ico can be overridden by files with same name and path in SPIFFS
* README.md updated
examples/protocols/http_server/file_serving/README.md
examples/protocols/http_server/file_serving/main/file_server.c