Browse Source

proper escape single quote

KAZOO-5650
lazedo 9 years ago
committed by GitHub
parent
commit
a072331192
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kamailio/presence_notify_sync-role.cfg

+ 1
- 1
kamailio/presence_notify_sync-role.cfg View File

@ -82,7 +82,7 @@ event_route[presence:notify-reply]
} }
if(@cfg_get.kazoo.presence_notify_log_to_table == 1) { if(@cfg_get.kazoo.presence_notify_log_to_table == 1) {
$var(Query) = $_s(REPLACE INTO active_watchers_log (presentity_uri, watcher_username, watcher_domain, event, callid, to_user, to_domain, user_agent, time, result, sent_msg, received_msg) VALUES ("$subs(uri)", "$subs(watcher_username)", "$subs(watcher_domain)", "$subs(event)","$subs(callid)","$subs(to_user)","$subs(to_domain)", "$(subs(user_agent){s.escape.common}{s.replace,\','}{s.replace,$$,})", $TS, $notify_reply($rs), '$(mb{s.escape.common}{s.replace,\','}{s.replace,$$,})', '$(notify_reply($mb){s.escape.common}{s.replace,\','}{s.replace,$$,})'));
$var(Query) = $_s(REPLACE INTO active_watchers_log (presentity_uri, watcher_username, watcher_domain, event, callid, to_user, to_domain, user_agent, time, result, sent_msg, received_msg) VALUES ("$subs(uri)", "$subs(watcher_username)", "$subs(watcher_domain)", "$subs(event)","$subs(callid)","$subs(to_user)","$subs(to_domain)", '$(subs(user_agent){s.escape.common}{s.replace,\',''}{s.replace,$$,})', $TS, $notify_reply($rs), '$(mb{s.escape.common}{s.replace,\',''}{s.replace,$$,})', '$(notify_reply($mb){s.escape.common}{s.replace,\',''}{s.replace,$$,})'));
mq_add("presence_last_notity", "$subs(callid)", "$var(Query)"); mq_add("presence_last_notity", "$subs(callid)", "$var(Query)");
} }
} }


Loading…
Cancel
Save