]> Devoid-pointer.net GitWeb - Nine-Q.git/commitdiff
Handle strings in a more secure manner in the tex2ima script
authorMichal Malý <madcatxster@devoid-pointer.net>
Mon, 29 Dec 2014 16:17:47 +0000 (17:17 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Mon, 29 Dec 2014 16:17:47 +0000 (17:17 +0100)
bin/tex2ima

index eed8844eb633647d9916fd89ac53bc37ed1b0a71..7e056a581906152e47953c1d1218e759c9598c49 100755 (executable)
@@ -24,8 +24,8 @@ color2="black"
 
 while getopts o:s: Options; do
   case $Options in
-    s) TEXCODE=$OPTARG;;
-    o) outfile=$OPTARG;;
+    s) TEXCODE="$OPTARG";;
+    o) outfile="$OPTARG";;
   esac;
 done