Skip to content

Commit

Permalink
web: true/fals are no python booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Jun 26, 2010
1 parent 246f0a9 commit 189cde5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions amsn2/ui/front_ends/web/bend.py
Expand Up @@ -10,17 +10,17 @@

def uri_path_is_safe(path):
if not BASEPATH and path[0] == '/':
return false
return False
elif path[0:1] == '..':
return false
return False

l = path.split('/')
b = [d for d in l if d == '..']

if len(b) >= len(l):
return false
return False

return true
return True


class TinyHTTPServer(object):
Expand Down

0 comments on commit 189cde5

Please sign in to comment.