[Plugin: TinyMCEComments] TinyMCE comments with Simple Captcha
-
If you are using this plugin with Simple Captcha, you will need to make the following changes to zrx_captcha.inc.php:
--- zrx_captcha.inc.php +++ zrx_captcha.inc.php @@ -177,7 +177,7 @@ ff.email.value = "<?php echo htmlspecialchars($_POST['email1']); ?>"; ff.url.value = "<?php echo htmlspecialchars($_POST['url1']); ?>"; ff.comment.value = "<?php $trans = array("\r" => '\r', "\n" => '\n'); - echo strtr(htmlspecialchars($_POST['comment1']), $trans); ?>"; + echo strtr($_POST['comment1'], $trans); ?>"; alert("Invalid secutiry code! Please try again."); //]]> </script><?php @@ -215,7 +215,7 @@ <input type="hidden" name="author1" value="<?php echo htmlspecialchars($_POST['author']); ?>" /> <input type="hidden" name="email1" value="<?php echo htmlspecialchars($_POST['email']); ?>" /> <input type="hidden" name="url1" value="<?php echo htmlspecialchars($_POST['url']); ?>" /> - <textarea style="display:none;" name="comment1"><?php echo htmlspecialchars($_POST['comment']); ?></textarea> + <textarea style="display:none;" name="comment1"><?php echo $_POST['comment']; ?></textarea> </form> <script type="text/javascript"> <!--
- The topic ‘[Plugin: TinyMCEComments] TinyMCE comments with Simple Captcha’ is closed to new replies.