[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: wiki/parse html.php,1.9,1.10
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: wiki/parse html.php,1.9,1.10 |
Date: |
Mon, 31 Mar 2003 04:51:21 -0500 |
Update of /cvsroot/phpgroupware/wiki/parse
In directory subversions:/tmp/cvs-serv8204
Modified Files:
html.php
Log Message:
improved spamsave mail-addresses
Index: html.php
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/parse/html.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** html.php 20 Mar 2003 00:46:15 -0000 1.9
--- html.php 31 Mar 2003 09:51:19 -0000 1.10
***************
*** 114,120 ****
if (preg_match('/^mailto:(address@hidden)@(.*)$/i',$url,$matchs)) //
spamsaver emailaddress
{
! $url = "mailto:$matchs[1] at $matchs[2]";
! $onClick = "
onClick=\"document.location='mailto:$matchs[1]'+'@'+'$matchs[2]'; return
false;\"";
! $text = str_replace('@',' at ',str_replace('mailto:','',$text));
}
return "<a href=\"$url\"$onClick>$text</a>";
--- 114,121 ----
if (preg_match('/^mailto:(address@hidden)@(.*)$/i',$url,$matchs)) //
spamsaver emailaddress
{
! $url = "#";
! $domains = "'".implode("'+'.'+'",explode('.',$matchs[2]))."'";
! $onClick = "
onClick=\"document.location='mailto:$matchs[1]'+unescape('%40')+$domains;
return false;\"";
! $text = str_replace('@',' AT
',str_replace('mailto:','',str_replace('.',' DOT ',$text)));
}
return "<a href=\"$url\"$onClick>$text</a>";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: wiki/parse html.php,1.9,1.10,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: email/inc class.boindex.inc.php,1.30,1.30.2.1 class.bopreferences.inc.php,1.23,1.23.2.1 class.html_widgets.inc.php,1.3,1.3.2.1 class.mail_msg_base.inc.php,1.78.2.1,1.78.2.2 class.uipreferences.inc.php,1.16,1.16.2.1 hook_preferences.inc.php,1.14,1.14.2.1
- Next by Date:
[Phpgroupware-cvs] CVS: wiki/parse html.php,1.10,1.11
- Previous by thread:
[Phpgroupware-cvs] CVS: email/inc class.boindex.inc.php,1.30,1.30.2.1 class.bopreferences.inc.php,1.23,1.23.2.1 class.html_widgets.inc.php,1.3,1.3.2.1 class.mail_msg_base.inc.php,1.78.2.1,1.78.2.2 class.uipreferences.inc.php,1.16,1.16.2.1 hook_preferences.inc.php,1.14,1.14.2.1
- Next by thread:
[Phpgroupware-cvs] CVS: wiki/parse html.php,1.10,1.11
- Index(es):