Explorar el Código

Update func.various.inc

Capitan Cloud hace 2 años
padre
commit
ed38974511
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Private/functions/func.various.inc

+ 2 - 2
Private/functions/func.various.inc

@@ -188,7 +188,7 @@ if (!function_exists("enableLinks")) {
 function enableLinks(string $text): string
 {
   //return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?.+)?/", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
-  return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?[\da-zA-Z\-\?\/\&\#\=]+)?/i", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
+  return preg_replace("/(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,8})(\/?[\da-zA-Z\-\_\?\/\&\#\=]+)?/i", "<a href='\\0' target=\"_blank\">\\0</a>", $text);
 }  
 }
 
@@ -237,4 +237,4 @@ function getShortLang($lang) {
     return left($lang, 2);
   }
 }
-}
+}