mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +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;
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user