mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 19:12:44 +00:00
Fix handling of decoding contacts UID
A problem occurs when the contact UID contains a special character that was HTML encoded (ex: space, &, ").
This commit is contained in:
@@ -12,11 +12,7 @@
|
||||
/* The content of attribute values should be quoted properly by using the
|
||||
equivalent entities. */
|
||||
function dTreeQuote(str) {
|
||||
return (str
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/\"/g, """)
|
||||
.replace(/\'/g, "'"));
|
||||
return str.escapeHTML();
|
||||
}
|
||||
|
||||
// Node object
|
||||
|
||||
Reference in New Issue
Block a user