Revision 684
Added by doc almost 17 years ago
trunk/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.7.0 ------------------------------------- |
14 | 14 |
09-Feb-2008 Christian Sommer |
15 |
# output_filter: removed word boundary from mailto regex part |
|
15 | 16 |
# fixed bug in menu_link module (IE 7 did not show the select boxes at all) |
16 | 17 |
# fixed bug in user signup |
17 | 18 |
! output_filter: added word boundary for the mailto regex part |
trunk/wb/modules/output_filter/filter-routines.php | ||
---|---|---|
89 | 89 |
define('OUTPUT_FILTER_DOT_REPLACEMENT', $filter_settings['dot_replacement']); |
90 | 90 |
|
91 | 91 |
// first search part to find all mailto email addresses |
92 |
$pattern = '#\b(<a.*?href\s*?=\s*?"\s*?mailto\s*?:\s*?)([A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4})([^"]*?)"([^>]*>)(.*?)</a>\b';
|
|
92 |
$pattern = '#(<a.*?href\s*?=\s*?"\s*?mailto\s*?:\s*?)([A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4})([^"]*?)"([^>]*>)(.*?)</a>';
|
|
93 | 93 |
// second part to find all non mailto email addresses |
94 | 94 |
$pattern .= '|\b([A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4})\b#i'; |
95 | 95 |
/* |
Also available in: Unified diff
removed word boundary from mailto regex part in the output_filter module