diff options
-rw-r--r-- | single.inc.php | 2 | ||||
-rw-r--r-- | timeline.inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/single.inc.php b/single.inc.php index 7ef7251..623e121 100644 --- a/single.inc.php +++ b/single.inc.php @@ -26,7 +26,7 @@ $formatted_time = strftime('%b %d %Y %H:%M', $post['post_timestamp']); ?> <time class="post-timestamp" datetime="<?= $datetime ?>" data-unix-time="<?= $post['post_timestamp'] ?>"><?= $formatted_time ?></time> - <p class="post-message"><?= autolink($post['post_content']) ?></p> + <p class="post-message"><?= nl2br(autolink($post['post_content'])) ?></p> <?php else: ?> <p>No post with this ID.</p> <?php endif; ?> diff --git a/timeline.inc.php b/timeline.inc.php index 13a4d54..f560d24 100644 --- a/timeline.inc.php +++ b/timeline.inc.php @@ -42,7 +42,7 @@ $formatted_time = strftime('%b %d %Y %H:%M', $post['post_timestamp']); ?> <a class="post-timestamp" href="<?= $config['url'] ?>/<?= $post['id'] ?>"><time datetime="<?= $datetime ?>" data-unix-time="<?= $post['post_timestamp'] ?>"><?= $formatted_time ?></time></a> - <p class="post-message"><?= autolink($post['post_content']) ?></p> + <p class="post-message"><?= nl2br(autolink($post['post_content'])) ?></p> </li> <?php endforeach; ?> </ul> |