fix: [UI showpaste] min preview

pull/342/head
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
1 changed files with 1 additions and 1 deletions

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