ButlerBlog

chad butler's weblog

  • About
  • Blog
  • WordPress Plugins
  • Contact
Home / Web / WordPress / WP-Members / WP-Members™ 2.3.2 Bug Fix – Apostrophe/Quotation marks in dialogs

WP-Members™ 2.3.2 Bug Fix – Apostrophe/Quotation marks in dialogs

By Chad Butler 7 Comments

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!

  • Facebook
  • Twitter
  • Email
  • Print
  • More
  • LinkedIn
  • Reddit
  • Tumblr
  • Pocket
  • Pinterest

Filed Under: WP-Members Tagged With: plugins, WordPress, WP-Members

About Chad Butler

Chad Butler is a freelance writer and web developer. He has developed several popular WordPress plugins and has written for forbes.com, sfomag.com, and investopedia.com. He also runs a small organic farm in east Georgia.

Join Us!

I will never share your information. No spam. No junk. No kidding. Unsubscribe anytime.


Recent Posts:

  • The Right Product at the Right Time
  • Top 3 Time Wasters
    Keeping You From Success
  • Top 8 Tips to Create Your Own Website Easily With WordPress
  • How to Fix wp_mail
    Settings for WordPress Email
  • 7 Reasons Why Social Networking Can Help Your Business
  • Understanding WordPress wp_mail and
    how to fix it
  • Prevent WordPress email sent
    to spam with this
  • Easy wp mail SMTP settings for WordPress
  • The Importance of Supporting Developers
    of Free Open Source Software
  • How to Run an Effective Meeting





Archives

  • About
  • Blog
  • Archive
  • Contact

Site powered by WordPress, running on the Genesis Framework from StudioPress.

Unless otherwise noted, content on this site is © 2006-2021 ButlerBlog and may not be reproduced without express written permission from the author.

Some content may include affiliate links for which this site receives a small commission.

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.