From 2548a70075ebec66f2c87ed2f5be64e0ebdb79c5 Mon Sep 17 00:00:00 2001
From: Brett Parker <arch@sommitrealweird.co.uk>
Date: Sat, 13 May 2006 16:49:38 +0000
Subject: [PATCH] Fix potential security hole

Make pages work for fullsized images.

git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-23
---
 bpgallery.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bpgallery.sh b/bpgallery.sh
index f8605d6..ac776ce 100755
--- a/bpgallery.sh
+++ b/bpgallery.sh
@@ -415,7 +415,7 @@ function generate_general_page() {
 		caption=""
 	fi
 
-	$BPGALLERY_PAGE_FUNCTION > $currentpage
+	$BPGALLERY_PAGE_FUNCTION > "$currentpage"
 }
 
 if [[ $OUTPUTHTML != 0 ]]; then
-- 
2.39.5