fix regular expression

This commit is contained in:
ralf 2023-06-28 07:29:38 +02:00
parent d994f3f92e
commit acfcebce4a

View File

@ -200,7 +200,7 @@ export class Et2Avatar extends Et2Widget(SlotMixin(SlAvatar)) implements et2_IDe
let oldContactId = this._contactId; let oldContactId = this._contactId;
this._contactId = _contactId; this._contactId = _contactId;
// if our image (incl. cache-buster) already includes the correct id, use that one // if our image (incl. cache-buster) already includes the correct id, use that one
if(!this.image || !this.image.match("(&|\\?)contact_id=" + parsedId + "(&|\\$)")) if(!this.image || !this.image.match("(&|\\?)" + id + "=" + encodeURIComponent(parsedId) + "(&|$)"))
{ {
params[id] = parsedId; params[id] = parsedId;
this.image = egw.link('/api/avatar.php', params); this.image = egw.link('/api/avatar.php', params);