mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 00:41:52 +02:00
XHTML fix
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/mail.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2006-12-19 10:03:31 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2006-12-30 16:33:39 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -96,7 +96,7 @@ function sendemail($send_to, $subject, $message, $to_name, $send_from, $from_nam
|
||||
$Html = preg_replace('%(http|ftp|https)(://\S+)%', '<a href="\1\2">\1\2</a>', $Html);
|
||||
$Html = preg_replace('/([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', '\\1<a href="http://\\2">\\2</a>', $Html);
|
||||
$Html = preg_replace('/([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})/i', '<a href="mailto:\\1">\\1</a>', $Html);
|
||||
$Html = str_replace("\n", "<br>\n", $Html);
|
||||
$Html = str_replace("\n", "<br />\n", $Html);
|
||||
}
|
||||
if (strpos($message,"</style>") !== FALSE){
|
||||
$text = strstr($message,"</style>");
|
||||
|
Reference in New Issue
Block a user