]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup &
authorEvan Prodromou <evan@prodromou.name>
Tue, 17 Jun 2008 15:20:51 +0000 (11:20 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 17 Jun 2008 15:20:51 +0000 (11:20 -0400)
darcs-hash:20080617152051-84dde-bc311c05a6cb15cdc5ac52f56964fa98f42f3927.gz

actions/openidlogin.php

index a9fbf7a26dda7b6813f3a86bdc5a0c6fbfa6464e..5d0537998d9c366b3471d489d37cc5e989147809 100644 (file)
@@ -113,7 +113,12 @@ class OpenidloginAction extends Action {
                        $form_id = 'openid_message';
                        $form_html = $auth_request->formMarkup($trust_root, $process_url,
                                                                                                   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('/&/', '&amp;', $form_html);
+                       
                        // Display an error if the form markup couldn't be generated;
                        // otherwise, render the HTML.
                        if (Auth_OpenID::isFailure($form_html)) {