Skip to content

Commit

Permalink
Temporary fix: encode + for the snaphots links
Browse files Browse the repository at this point in the history
Fixes #166
Ref: 466a0f0

How long this temporary fix will last ?
  • Loading branch information
williamdes committed Oct 10, 2024
1 parent 268cca2 commit 4679592
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions files/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,24 +359,24 @@ def get_filesystem_path(self):
def get_absolute_url(self):
return 'https://files.phpmyadmin.net{0}'.format(
self.__str__()
)
).replace('+', '%2b')

def get_signed_url(self):
if not self.signed:
return ''
return 'https://files.phpmyadmin.net{0}.asc'.format(
self.__str__().replace('+', '%2b')
)
self.__str__()
).replace('+', '%2b')

def get_checksum_url(self):
return 'https://files.phpmyadmin.net{0}.sha256'.format(
self.__str__().replace('+', '%2b')
)
self.__str__()
).replace('+', '%2b')

def get_alternate_url(self):
return 'https://1126968067.rsc.cdn77.org{0}'.format(
self.__str__().replace('+', '%2b')
)
self.__str__()
).replace('+', '%2b')

@property
def archive(self):
Expand Down

0 comments on commit 4679592

Please sign in to comment.