mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +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
|
relative_path = requested_path
|
||||||
requested_path = os.path.join(PASTES_FOLDER, requested_path)
|
requested_path = os.path.join(PASTES_FOLDER, requested_path)
|
||||||
else:
|
else:
|
||||||
relative_path = requested_path.replace(PASTES_FOLDER, '', 1)[1:]
|
relative_path = requested_path.replace(PASTES_FOLDER, '', 1)
|
||||||
# remove old full path
|
# remove old full path
|
||||||
#requested_path = requested_path.replace(PASTES_FOLDER, '')
|
#requested_path = requested_path.replace(PASTES_FOLDER, '')
|
||||||
# escape directory transversal
|
# escape directory transversal
|
||||||
|
|
Loading…
Reference in a new issue