fix: [UI showpaste] min preview

This commit is contained in:
Terrtia 2019-04-11 13:44:20 +02:00
parent 3cc614a1ad
commit 1ed9468881
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -258,7 +258,7 @@ def show_item_min(requested_path , content_range=0):
relative_path = requested_path
requested_path = os.path.join(PASTES_FOLDER, requested_path)
else:
relative_path = requested_path.replace(PASTES_FOLDER, '', 1)[1:]
relative_path = requested_path.replace(PASTES_FOLDER, '', 1)
# remove old full path
#requested_path = requested_path.replace(PASTES_FOLDER, '')
# escape directory transversal