diff options
Diffstat (limited to 'examples/rest_pastebin/src/toppage_handler.erl')
-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() -> |