Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Instead of turning img tags into url tags, simply remove them. This a…

…voids generating nested url tags, which are invalid. #152.
  • Loading branch information...
commit 0d0daf521729422cff234d79227d3e4018f56646 1 parent 44ba15d
@reines reines authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 post.php
View
4 post.php
@@ -417,8 +417,8 @@
list($q_poster, $q_message) = $db->fetch_row($result);
- $q_message = preg_replace('%\[img(?:=.*?)?\]%', '[url]', $q_message);
- $q_message = str_replace('[/img]', '[/url]', $q_message);
+ // Remove [img] tags from quoted message
+ $q_message = preg_replace('%\[img(?:=.*?)?\](.*)\[/img\]%', '\1', $q_message);
if ($pun_config['o_censoring'] == '1')
$q_message = censor_words($q_message);
Please sign in to comment.
Something went wrong with that request. Please try again.