mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [UI showpaste] min preview
This commit is contained in:
parent
3cc614a1ad
commit
1ed9468881
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue