Overview
Comment: | Add link to email address in proteger_contact modifier |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev | 1.0.0-rc7 |
Files: | files | file ages | folders |
SHA1: |
dd5595d3a9b0f2cf37c4e662be18ab55 |
User & Date: | bohwaz on 2020-12-05 22:05:02 |
Other Links: | branch diff | manifest | tags |
Context
2020-12-05
| ||
23:47 | Amélioration design pour mobile et tablettes check-in: 6084efe07c user: bohwaz tags: dev | |
22:05 | Add link to email address in proteger_contact modifier check-in: dd5595d3a9 user: bohwaz tags: dev, 1.0.0-rc7 | |
20:37 | Fix checkbox on multiple choice custom field check-in: a9802955f1 user: bohwaz tags: dev | |
Changes
Modified src/VERSION from [2efc8755ad] to [d0cb76d66a].
|
| | | 1 | 1.0.0-rc7 |
Modified src/include/lib/Garradin/Squelette_Filtres.php from [66213b94a0] to [4a8a3bb75b].
︙ | ︙ | |||
134 135 136 137 138 139 140 | } static public function proteger_contact($contact) { if (!trim($contact)) return ''; | | > > > | > > > | > | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | } static public function proteger_contact($contact) { if (!trim($contact)) return ''; if (strpos($contact, '@')) { $reversed = strrev($contact); // https://unicode-table.com/en/FF20/ $reversed = strtr($reversed, ['@' => '@']); return sprintf('<a href="#error" onclick="this.href = (this.innerText + \':otliam\').split(\'\').reverse().join(\'\').replace(/@/, \'@\');"><span style="unicode-bidi:bidi-override;direction: rtl;">%s</span></a>', htmlspecialchars($reversed)); } else { return '<a href="'.htmlspecialchars($contact, ENT_QUOTES, 'UTF-8').'">'.htmlspecialchars($contact, ENT_QUOTES, 'UTF-8').'</a>'; } } static public function entites_html($texte) { return htmlspecialchars($texte, ENT_QUOTES, 'UTF-8'); } |
︙ | ︙ |