Overview
Comment: | Smartyer: fix escape to hexentity |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | 5.6 |
Files: | files | file ages | folders |
SHA1: |
00a8929f78cf41ed032f8b8ee3a9081b |
User & Date: | bohwaz on 2019-04-09 14:13:46 |
Other Links: | manifest | tags |
Context
2019-04-17
| ||
09:00 | UserSession: fix typo in user session data key check-in: 1676b6bd17 user: bohwaz tags: 5.6, trunk | |
2019-04-09
| ||
14:13 | Smartyer: fix escape to hexentity check-in: 00a8929f78 user: bohwaz tags: 5.6, trunk | |
14:13 | ErrorManager: fix rare case of backtrace file not set check-in: 57d76de3ee user: bohwaz tags: 5.6, trunk | |
Changes
Modified src/lib/KD2/Smartyer.php from [a49dea68dd] to [b378e07275].
︙ | ︙ | |||
1327 1328 1329 1330 1331 1332 1333 | return addslashes($str); case 'hex': return preg_replace_callback('/./', function ($match) { return '%' . ord($match[0]); }, $str); case 'hexentity': return preg_replace_callback('/./', function ($match) { | | | 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 | return addslashes($str); case 'hex': return preg_replace_callback('/./', function ($match) { return '%' . ord($match[0]); }, $str); case 'hexentity': return preg_replace_callback('/./', function ($match) { return '&#' . ord($match[0]) . ';'; }, $str); case 'mail': return str_replace('.', '[dot]', $str); case 'json': return $str; case 'js': case 'javascript': |
︙ | ︙ |