11 lines
526 B
Diff
11 lines
526 B
Diff
--- application/bookmark/LinkUtils.php 2019-04-18 22:08:00.087837000 +0200
|
|
+++ ../Shaarli-0.10.3/application/bookmark/LinkUtils.php 2019-03-09 14:45:54.988629000 +0100
|
|
@@ -140,7 +140,7 @@
|
|
*/
|
|
function text2clickable($text, $redirector = '', $urlEncode = true)
|
|
{
|
|
- $regex = '!(((?:https?|ftp|file)://|apt:|magnet:)\S+[a-z0-9_\(\)]/?)!si';
|
|
+ $regex = '!(((?:https?|ftp|file)://|apt:|magnet:|@)\S+[a-z0-9_\(\)]/?)!si';
|
|
|
|
if (empty($redirector)) {
|
|
return preg_replace($regex, '<a href="$1">$1</a>', $text);
|