Revision 783
Added by doc over 17 years ago
| trunk/CHANGELOG | ||
|---|---|---|
| 11 | 11 |
! = Update/Change |
| 12 | 12 |
|
| 13 | 13 |
------------------------------------- 2.7.0 ------------------------------------- |
| 14 |
31-Mar-2008 Christian Sommer |
|
| 15 |
# fixed bug in output filter (mailto links with HTML entities in optional part) |
|
| 14 | 16 |
29-Mar-2008 Christian Sommer |
| 15 | 17 |
! added missing translation to Dutch language file (thanks Bramus) |
| 16 | 18 |
28-Mar-2008 Thomas Hornik |
| trunk/wb/modules/output_filter/filter-routines.php | ||
|---|---|---|
| 161 | 161 |
$decryption_key = chr($char_shift+97); // ASCII a:=97 |
| 162 | 162 |
|
| 163 | 163 |
// prepare mailto string for encryption (mail protocol, decryption key, mail address) |
| 164 |
$email_address = "mailto:" .$decryption_key .$match[2] .$match[3]; |
|
| 165 |
|
|
| 164 |
// match[3] contains the optional email subject and body text |
|
| 165 |
// convert %XX values into characters and remove HTML entities like & into it?s expression like & |
|
| 166 |
$email_address = "mailto:" .$decryption_key .$match[2] .html_entity_decode(rawurldecode($match[3])); |
|
| 167 |
|
|
| 166 | 168 |
// encrypt email address by shifting characters |
| 167 | 169 |
$encrypted_email = ""; |
| 168 | 170 |
for($i=0; $i<strlen($email_address); $i++) {
|
Also available in: Unified diff
fixed bug in output filter (mailto links with HTML entities in optional part)