Plugin replacing plusses with spaces when editing comments
-
I recently deployed this plugin (v6.1) on my site, and a user reported that when editing comments, all ‘+’ symbols are being replaced by spaces when saving an edited comment.
This appears to be result of this line in class.ajax.php:
$comment[‘comment_content’] = trim(urldecode($_POST[‘comment_content’]));I changed it to the following:
$comment[‘comment_content’] = trim(rawurldecode($_POST[‘comment_content’]));And the plusses no longer are replaced with spaces.
If this is proper behavior, maybe this can be integrated into the mainline so I don’t have to maintain a local patch?
- The topic ‘Plugin replacing plusses with spaces when editing comments’ is closed to new replies.