Commit e143d565 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Improved IMPP authorized characters

parent 6863a226
......@@ -88,9 +88,7 @@ BelCardImpp::BelCardImpp() : BelCardProperty() {
void BelCardImpp::setValue(const string &value) {
bctbx_noescape_rules_t uri = {0};
bctbx_noescape_rules_add_alfanums(uri);
bctbx_noescape_rules_add_list(uri, ":");
bctbx_noescape_rules_add_list(uri, "@");
bctbx_noescape_rules_add_list(uri, ".");
bctbx_noescape_rules_add_list(uri, ":@.-_~%!$&'()*+,;=");
// Escape characters if required
char * escaped_value = bctbx_escape(value.c_str(), uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment