diff options
| author | czaks <marcin@6irc.net> | 2013-07-31 21:22:57 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-31 21:22:57 -0400 |
| commit | e93d5b2f8e033735ca40a9d3a44771be9f3842c8 (patch) | |
| tree | 72bcf04573a2ccd251811f942b8232dadf3a0240 | |
| parent | 055c3a73820dd949ab8bf71012fac66cac9daebd (diff) | |
Revert "markup modifiers: make it even harder to escape"
This reverts commit d7ea47a91f63382f7a4e002086e415550e342a11.
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index a6fd35c7..e57fd32a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1623,7 +1623,7 @@ function markup(&$body, $track_cites = false) { } function escape_markup_modifiers($string) { - return preg_replace('@<tinyboard ([\w\s]+)>@m', '<tinyboard escape $1>', $string); + return preg_replace('@<tinyboard ([\w\s]+)>(.+)</tinyboard>@m', '<tinyboard escape $1>$2</tinyboard>', $string); } function utf8tohtml($utf8) { |
