From 1ed94688815cc98ef2e6f65d511fe52cf8be1449 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 11 Apr 2019 13:44:20 +0200 Subject: [PATCH] fix: [UI showpaste] min preview --- var/www/modules/showpaste/Flask_showpaste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/modules/showpaste/Flask_showpaste.py b/var/www/modules/showpaste/Flask_showpaste.py index 2d856a96..9ea5f22a 100644 --- a/var/www/modules/showpaste/Flask_showpaste.py +++ b/var/www/modules/showpaste/Flask_showpaste.py @@ -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