Upstream filp/whoops state of the touched files before b6b679db7d

This commit is contained in:
upstream committed 2026-09-04 03:00:40 +02:00
1 parent 8652196c72
commit aed19f01eb
2 files changed
+1 -48

No files matched your search

+1 -5
View File
@@ -80,10 +80,6 @@ class TemplateHelper
* Escapes a string for output in an HTML document, but preserves
* URIs within it, and converts them to clickable anchor elements.
*
* Only http and https URIs are turned into links. Any other scheme is left as
* plain text, because schemes such as javascript: and data: would otherwise
* become clickable script execution on the error page.
*
* @param string $raw
* @return string
*/
@@ -91,7 +87,7 @@ class TemplateHelper
{
$escaped = $this->escape($raw);
return preg_replace(
"@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@i",
"@([A-z]+?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@",
"<a href=\"$1\" target=\"_blank\" rel=\"noreferrer noopener\">$1</a>",
$escaped
);