mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix regular expression
This commit is contained in:
parent
d994f3f92e
commit
acfcebce4a
@ -200,7 +200,7 @@ export class Et2Avatar extends Et2Widget(SlotMixin(SlAvatar)) implements et2_IDe
|
||||
let oldContactId = this._contactId;
|
||||
this._contactId = _contactId;
|
||||
// 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;
|
||||
this.image = egw.link('/api/avatar.php', params);
|
||||
|
Loading…
Reference in New Issue
Block a user