Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Site name cannot contain an apostrophe #33

shane-tomlinson opened this Issue · 0 comments

1 participant


As reported by musicisair in

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);

@shane-tomlinson shane-tomlinson closed this issue from a commit
@shane-tomlinson Fix input fields that are unable to have an apostrophe.
Print the HTML escaped version of the value when printing an input box.

fixes #33.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.