]> git.plutz.net Git - lobster/commitdiff
no escapes in debug function
authorpaul <paul@plutz.net>
Mon, 7 Oct 2013 11:54:05 +0000 (11:54 +0000)
committerpaul <paul@plutz.net>
Mon, 7 Oct 2013 11:54:05 +0000 (11:54 +0000)
svn path=/trunk/; revision=13

index.cgi
pages/attendees.sh

index 327135f8f21529e9cb029bba29b530e3a22a5ad8..90ded2d30b79bef9c9f0882106121eb6420c949f 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -7,7 +7,7 @@ die() {
 }
 debug() { #change to false to disable debugging
   #true && echo "$*" >>debug
-  true && [ -n "$*" ] && echo "$*" >>/dev/stderr
+  true && [ -n "$*" ] && echo -E "$*" >>/dev/stderr
   true && [ -z "$*" ] && tee /dev/stderr
 }
 
index a2730e6e4db40265889e3bcb24f25670b8f99de0..4c84af15a8c67dac7d9f92e69a95d15610d98bbb 100755 (executable)
@@ -134,7 +134,7 @@ vcf_parse() {
     case "$line" in
       key=*) echo -E "$line"
        ;;
-      value=*) echo -E "$line"
+      value=*) echo -E "$line" |debug
        ;;
       tag=*) ot=''
             echo -E "$line" \