Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F211600
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/includes/Smarty/plugins/modifier.text2html.php b/includes/Smarty/plugins/modifier.text2html.php
--- a/includes/Smarty/plugins/modifier.text2html.php
+++ b/includes/Smarty/plugins/modifier.text2html.php
@@ -1,38 +1,38 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty lower modifier plugin
*
* Type: modifier<br>
* Name: yyyymmdd<br>
* Purpose: Appends dashes to yyyymmdd string to output yyyy-mm-dd
* @author Wolfaeym
* @param string
* @return string
*/
function smarty_modifier_text2html($string)
{
//HTML entities
$string = htmlspecialchars($string, ENT_QUOTES);
//E-mail -> mailto links
- $string = preg_replace("/([_a-z0-9-]+(\._a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)/", "<a href=\"mailto:\\1\">\\1</A>", $string);
+ $string = preg_replace("/([_a-z0-9-]+(\._a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)/i", "<a href=\"mailto:\\1\">\\1</A>", $string);
//Linkify URLs
//TODO handle www.
//TODO Relative links for current domain
- $string = preg_replace("@([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])@", "<a href=\"\\1://\\2\\3\">\\1://\\2\\3</a>", $string);
+ $string = preg_replace("@([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])@i", "<a href=\"\\1://\\2\\3\">\\1://\\2\\3</a>", $string);
//\n -> <br />
$string = nl2br($string);
return $string;
}
?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 24, 11:03 (12 h, 48 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
20938
Default Alt Text
(1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment