mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
fixed infinit loop, if string to active starts with url right away, eg. "https://domain.com/"
This commit is contained in:
parent
3b8bee4d18
commit
c6fe901b56
@ -495,10 +495,11 @@ function et2_activateLinks(_content)
|
|||||||
var splitted = _content.split(_matches[0]);
|
var splitted = _content.split(_matches[0]);
|
||||||
|
|
||||||
// Push the not-matched part
|
// Push the not-matched part
|
||||||
if (splitted[0])
|
var left = splitted.shift();
|
||||||
|
if (left)
|
||||||
{
|
{
|
||||||
// activate the links of the left string
|
// activate the links of the left string
|
||||||
arr = arr.concat(et2_activateLinks(splitted.shift()));
|
arr = arr.concat(et2_activateLinks(left));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call the callback function which converts the matches into an object
|
// Call the callback function which converts the matches into an object
|
||||||
|
Loading…
Reference in New Issue
Block a user