summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-09-01 11:25:19 -0400
committerczaks <marcin@6irc.net>2013-09-01 11:25:19 -0400
commit069f1def9bf8c8d769afdc5740e9ff13271065bd (patch)
treed60db9e7126ecb0e046b34c3faa3b49ca7bfd32e /inc/display.php
parentc2400568656e6bb8e629704d312322937d24fb2d (diff)
parent22fcca343f8d4e820745a673972286b47a6a17ba (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: install.php
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php
index 4988cbf5..736fdc03 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -126,7 +126,7 @@ function pm_snippet($body, $len=null) {
$len = &$config['mod']['snippet_length'];
// Replace line breaks with some whitespace
- $body = str_replace('<br/>', ' ', $body);
+ $body = preg_replace('@<br/?>@i', ' ', $body);
// Strip tags
$body = strip_tags($body);