]> git.plutz.net Git - lobster/commitdiff
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 9d03cadfdc4a9037c2373e783b5e7957fb7fb995..f40f82dc6da1c8c818e6367d63ff74d21f8e900a 100755 (executable)
@@ -183,7 +183,8 @@ vcf_parse() {
             done
        ;;
     esac
-  done
+  done \
+  | sed -r 's:[\\$`]:\\&:g'
 }
 
 view_attendee() {  #Parameter: Cardfile