Permalink
Browse files

Fix path checking logic

  • Loading branch information...
1 parent a4f1fc3 commit e604ebcf92b4f3243f38cb7c57b7aad546b4ca20 @tarcieri tarcieri committed Apr 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dcell/explorer.rb
View
2 lib/dcell/explorer.rb
@@ -24,7 +24,7 @@ def route(connection, request)
path = request.url[%r{^/([a-z0-9\.\-_]+(/[a-z0-9\.\-_]+)*)$}, 1]
end
- unless path or path[".."]
+ if !path or path[".."]
Logger.info "404 Not Found: #{request.path}"
connection.respond :not_found, "Not found"
return

0 comments on commit e604ebc

Please sign in to comment.