diff options
| author | Macil Tech <maciltech@gmail.com> | 2013-03-18 03:14:30 +0800 |
|---|---|---|
| committer | Macil Tech <maciltech@gmail.com> | 2013-06-18 11:16:15 -0500 |
| commit | b6fc7ca89d8ac0fea48fc4f3b7862cb9ea1e0687 (patch) | |
| tree | 621547e3695341bee4e4ca61324e2e26d35cdb94 /inc | |
| parent | be1e55b9d63bd4cdb910206e9e99ecf83ca7ffde (diff) | |
Fix broken entity removal in post truncation.
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/display.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php index 6d8cf366..90764b43 100644 --- a/inc/display.php +++ b/inc/display.php @@ -204,7 +204,7 @@ function truncate($body, $url, $max_lines = false, $max_chars = false) { } } else { // remove broken HTML entity at the end (if existent) - $body = preg_replace('/&[^;]+$/', '', $body); + $body = preg_replace('/&[^;]*$/', '', $body); } $body .= '<span class="toolong">Post too long. Click <a href="' . $url . '">here</a> to view the full text.</span>'; |
