bugfix
This commit is contained in:
parent
1f9c589c25
commit
d90c4ab198
@ -139,8 +139,13 @@ def b64media2url(request, mediafile):
|
|||||||
path = fs.webpath(fpath)
|
path = fs.webpath(fpath)
|
||||||
return entire_url('/idfile?path=') + env.quote(path)
|
return entire_url('/idfile?path=') + env.quote(path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{e}\n{format_exc()}')
|
e = Exception(f'{e}\n{format_exc()}')
|
||||||
return ' '
|
exception(f'{e}')
|
||||||
|
raise e
|
||||||
|
elif len(mediafile) > 8000:
|
||||||
|
e = Exception(f'mediafile is not a media file')
|
||||||
|
exception(f'{e}')
|
||||||
|
raise e
|
||||||
if mediafile.startswith('http://') or mediafile.startswith('https://'):
|
if mediafile.startswith('http://') or mediafile.startswith('https://'):
|
||||||
return mediafile
|
return mediafile
|
||||||
url = entire_url('/idfile?path=') + env.quote(mediafile)
|
url = entire_url('/idfile?path=') + env.quote(mediafile)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user