Permalink
Browse files

Strip slashes from paths fed to filertag

  • Loading branch information...
1 parent 6af79b6 commit 97a4d2638d77cb50aa63283a18c240ef4aa514b0 @kux kux committed Apr 25, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 filertags/templatetags/filertags.py
@@ -48,6 +48,7 @@ def filerfile(path):
* the actual url: filer_public/2012/11/22/foobar.png
This tag returns the actual url associated with the logical path.
"""
+ path = path.strip('/')
if LOGICAL_EQ_ACTUAL_URL:
try:
return File.objects.get(file__in=get_possible_paths(path)).url

0 comments on commit 97a4d26

Please sign in to comment.