WordPress.org

Forums

Mozilla Persona (BrowserID)
[resolved] Site name cannot contain an apostrophe (3 posts)

  1. musicisair
    Member
    Posted 2 years ago #

    function Option_sitename needs to escape $options['browserid_sitename'] with htmlspecialcharacters.

    The new function should look like this:

    // Site name option
    		function Option_sitename() {
    			$options = get_option('browserid_options');
    			if (empty($options['browserid_sitename']))
    				$options['browserid_sitename'] = null;
    			echo "<input id='browserid_sitename' name='browserid_options[browserid_sitename]' type='text' size='100' value='" . htmlspecialcharacters( $options['browserid_sitename'] ) . "' />";
    			echo '' . __('Default the WordPress site name', c_bid_text_domain);
    		}

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    http://wordpress.org/extend/plugins/browserid/

  2. Shane Tomlinson
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks musicisair, I have opened this as an issue on the GitHub repo: https://github.com/shane-tomlinson/browserid-wordpress/issues/33

  3. Shane Tomlinson
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks again musicisair, I have fixed this in https://github.com/shane-tomlinson/browserid-wordpress/commit/410423ed8dd1c43c9d09994de2128bf501affdd1

    This fix will make it into the next release! Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Mozilla Persona (BrowserID)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.