diff options
author | Loïc Hoguin <[email protected]> | 2013-02-16 14:29:46 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-02-16 14:29:46 +0100 |
commit | e102b3ac09bebf4ea413af3d6c6d62c8667c566f (patch) | |
tree | 066be530722d077e7ced2c0e4317361a181336a8 /examples | |
parent | e3daf439da42283cf65faa3311ff73bb7ffe413b (diff) | |
parent | a9294e0f5079d8a7a424cdffc7d5f22ec94825c5 (diff) | |
download | cowboy-e102b3ac09bebf4ea413af3d6c6d62c8667c566f.tar.gz cowboy-e102b3ac09bebf4ea413af3d6c6d62c8667c566f.tar.bz2 cowboy-e102b3ac09bebf4ea413af3d6c6d62c8667c566f.zip |
Merge branch 'pastebin_example' of git://github.com/acammack/cowboy
Diffstat (limited to 'examples')
-rw-r--r-- | examples/rest_pastebin/src/toppage_handler.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/rest_pastebin/src/toppage_handler.erl b/examples/rest_pastebin/src/toppage_handler.erl index 758e11d..5e904d9 100644 --- a/examples/rest_pastebin/src/toppage_handler.erl +++ b/examples/rest_pastebin/src/toppage_handler.erl @@ -89,6 +89,7 @@ file_exists(Name) -> valid_path(<<>>) -> true; valid_path(<<$., _T/binary>>) -> false; +valid_path(<<$/, _T/binary>>) -> false; valid_path(<<_Char, T/binary>>) -> valid_path(T). new_paste_id() -> |