From 2c32c30eb3174e209a9b2fe39bf010392239b27d Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 20 Jul 2014 16:08:56 +0000 Subject: [PATCH] disallow Semicolon (;) character in persons name svn path=/trunk/; revision=49 --- actions/update_attendee.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/update_attendee.sh b/actions/update_attendee.sh index 76e0086..3e97f87 100644 --- a/actions/update_attendee.sh +++ b/actions/update_attendee.sh @@ -12,6 +12,12 @@ tempfile="$_DATA/temp/$card" cardfile="$_DATA/vcard/$card" attfile="$_DATA/mappings/attendance" +_POST["0N"]="$(echo "$_POST[\"0N\"]" |sed 's:;: :')" +_POST["1N"]="$(echo "$_POST[\"1N\"]" |sed 's:;: :')" +_POST["2N"]="$(echo "$_POST[\"2N\"]" |sed 's:;: :')" +_POST["3N"]="$(echo "$_POST[\"3N\"]" |sed 's:;: :')" +_POST["4N"]="$(echo "$_POST[\"4N\"]" |sed 's:;: :')" + echo "BEGIN:VCARD\r" >"$tempfile" echo "VERSION:4.0\r" >>"$tempfile" echo "N:$_POST[\"0N\"];$_POST[\"1N\"];$_POST[\"2N\"];$_POST[\"3N\"];$_POST[\"4N\"]\r" >>"$tempfile" -- 2.39.2