Support » Plugin: Mozilla Persona (BrowserID) » Site name cannot contain an apostrophe

  • Resolved musicisair

    (@musicisair)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site name cannot contain an apostrophe’ is closed to new replies.