Fix potential security hole
[bpgallery.git] / bpgallery.sh
index e6c6f9f90c0f953ab276d49a72a9ee0949eba303..ac776ce79920f1dc30d5973d658d6066bb00998e 100755 (executable)
@@ -19,7 +19,7 @@
 
 set -f
 
-VERSION="1.0.2+arch"
+VERSION="1.0.3"
 
 function bpgallery_default_head() {
 cat <<END
@@ -415,7 +415,7 @@ function generate_general_page() {
                caption=""
        fi
 
-       $BPGALLERY_PAGE_FUNCTION > $currentpage
+       $BPGALLERY_PAGE_FUNCTION > "$currentpage"
 }
 
 if [[ $OUTPUTHTML != 0 ]]; then