Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Site name cannot contain an apostrophe #33

Closed
shane-tomlinson opened this Issue · 0 comments

1 participant

@shane-tomlinson

As reported by musicisair in http://wordpress.org/support/topic/site-name-cannot-contain-an-apostrophe?replies=1

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.
410423e
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.