1. Yury Yurevich
  2. cyrax

Commits

Alexander Solovyov  committed 24ae5c4

exclude double slashes

  • Participants
  • Parent commits 772b5f7
  • Branches default

Comments (0)

Files changed (1)

File cyraxlib/models.py

View file
 
     def get_url(self):
         url = op.join(self.base, self.slug)
-        if self.isdir() and url:
+        if self.isdir() and url and not url.endswith('/'):
             url += '/'
         return url