X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Fplugins%2Fagendav.rb;h=e84c4f678fa98d1ecac7ae9b632fd8dea99f3927;hp=4bf6bc4aca11a2427c10e40151310bbeca452ea6;hb=deef740ad4201e9a7db6d9b7411b596ec89c2e89;hpb=0e1263c58d1ea96f649157daf15a587bc1d61879 diff --git a/lib/rm/plugins/agendav.rb b/lib/rm/plugins/agendav.rb index 4bf6bc4..e84c4f6 100644 --- a/lib/rm/plugins/agendav.rb +++ b/lib/rm/plugins/agendav.rb @@ -35,8 +35,8 @@ class AgendavRm # of the user's email address in the "calendar" field happens when # he is also the owner, so the calendar does get deleted in the # normal situation. - sql_queries << "DELETE FROM shares WHERE REPLACE(owner, '%40', '@') ~ $1;" - sql_queries << "DELETE FROM shares WHERE REPLACE(with, '%40', '@') ~ $1;" + sql_queries << "DELETE FROM shares WHERE REPLACE(owner,'%40','@') ~ $1;" + sql_queries << "DELETE FROM shares WHERE REPLACE(\"with\",'%40','@') ~ $1;" connection = PG::Connection.new(@db_hash) begin