darcs-hash:20080617152051-84dde-bc311c05a6cb15cdc5ac52f56964fa98f42f3927.gz
This commit is contained in:
Evan Prodromou 2008-06-17 11:20:51 -04:00
parent 00d898348b
commit 17504d0180

View File

@ -113,7 +113,12 @@ class OpenidloginAction extends Action {
$form_id = 'openid_message'; $form_id = 'openid_message';
$form_html = $auth_request->formMarkup($trust_root, $process_url, $form_html = $auth_request->formMarkup($trust_root, $process_url,
false, array('id' => $form_id)); false, array('id' => $form_id));
# XXX: This is cheap, but things choke if we don't escape ampersands
# in the HTML attributes
$form_html = preg_replace('/&/', '&', $form_html);
// Display an error if the form markup couldn't be generated; // Display an error if the form markup couldn't be generated;
// otherwise, render the HTML. // otherwise, render the HTML.
if (Auth_OpenID::isFailure($form_html)) { if (Auth_OpenID::isFailure($form_html)) {