Following the release of WP-Members 2.3.2, there was a bug brought to my attention by an astute user:
If you are using apostrophes in the custom dialog messages via the plugin’s admin panel, there will be slashes put into your content as the plugin neglects to clean up user input with “stripslashes.” This bug actually effects all releases from 2.2.0 on to 2.3.2.
This has been address in my next release (which will include bug fixes, but will also be a feature release as we add CAPTCHA). In the meantime, if it effects you, you can make some simple changes to correct it:
Change line 28 of wp-members-dialogs.php from:
<?php echo $wpmem_dialogs[0]; ?>
to:
<?php echo stripslashes($wpmem_dialogs[0]); ?>
Change line 195 of wp-member-admin.php from:
<textarea id="" name="<?php echo " rows="3" cols="50"><?php echo $wpmem_dialogs[$row]; ?></textarea>
to:
<textarea id="" name="<?php echo " rows="3" cols="50"><?php echo stripslashes($wpmem_dialogs[$row]); ?></textarea>
Hope this helps.
Enjoyed this article?
Don't miss a single post. Subscribe to our RSS feed!