Fix potential security hole
[bpgallery.git] / bpgallery.sh
index f8605d6f5dc2c8176f59f4a1e424df42928fe090..ac776ce79920f1dc30d5973d658d6066bb00998e 100755 (executable)
@@ -415,7 +415,7 @@ function generate_general_page() {
                caption=""
        fi
 
-       $BPGALLERY_PAGE_FUNCTION > $currentpage
+       $BPGALLERY_PAGE_FUNCTION > "$currentpage"
 }
 
 if [[ $OUTPUTHTML != 0 ]]; then