escape certain characters before passing to eval (\, $, and `)
authorpaul <paul@plutz.net>
Sun, 20 Jul 2014 16:10:59 +0000 (16:10 +0000)
committerpaul <paul@plutz.net>
Sun, 20 Jul 2014 16:10:59 +0000 (16:10 +0000)
svn path=/trunk/; revision=50

pages/attendees.sh

index 9d03cad..f40f82d 100755 (executable)
@@ -183,7 +183,8 @@ vcf_parse() {
             done
        ;;
     esac
-  done
+  done \
+  | sed -r 's:[\\$`]:\\&:g'
 }
 
 view_attendee() {  #Parameter: Cardfile