From a604bf94766c42e737576290de18336f89e8b5e5 Mon Sep 17 00:00:00 2001 From: EarringYYR <39593555+earringyyr@users.noreply.github.com> Date: Wed, 20 Feb 2019 19:02:08 +0800 Subject: [PATCH] fix(blog-preview.php): click readmore will lead to 404 page On Blog Preview page when someone set readmore flag will make rest of the content invisible. Instead there will be a button for users to click and get the full article. Because of the wrongly put link, it will make the last slash missing. Put the blog id back in the right place to get a right link. --- uoj/1/app/views/blog-preview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uoj/1/app/views/blog-preview.php b/uoj/1/app/views/blog-preview.php index 70945cf..7716d9e 100644 --- a/uoj/1/app/views/blog-preview.php +++ b/uoj/1/app/views/blog-preview.php @@ -2,7 +2,7 @@ if ($is_preview) { $readmore_pos = strpos($blog['content'], ''); if ($readmore_pos !== false) { - $content = substr($blog['content'], 0, $readmore_pos).'
'; + $content = substr($blog['content'], 0, $readmore_pos).''; } else { $content = $blog['content']; }