aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_pastebin/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-02-16 14:29:46 +0100
committerLoïc Hoguin <[email protected]>2013-02-16 14:29:46 +0100
commite102b3ac09bebf4ea413af3d6c6d62c8667c566f (patch)
tree066be530722d077e7ced2c0e4317361a181336a8 /examples/rest_pastebin/src
parente3daf439da42283cf65faa3311ff73bb7ffe413b (diff)
parenta9294e0f5079d8a7a424cdffc7d5f22ec94825c5 (diff)
downloadcowboy-e102b3ac09bebf4ea413af3d6c6d62c8667c566f.tar.gz
cowboy-e102b3ac09bebf4ea413af3d6c6d62c8667c566f.tar.bz2
cowboy-e102b3ac09bebf4ea413af3d6c6d62c8667c566f.zip
Merge branch 'pastebin_example' of git://github.com/acammack/cowboy
Diffstat (limited to 'examples/rest_pastebin/src')
-rw-r--r--examples/rest_pastebin/src/toppage_handler.erl1
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() ->