various scripts for various tasks.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
526 B

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