Index: modules/openid/openid.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/openid/openid.inc,v
retrieving revision 1.8
diff -u -p -r1.8 openid.inc
--- modules/openid/openid.inc	30 Jan 2008 22:11:22 -0000	1.8
+++ modules/openid/openid.inc	12 Sep 2009 23:45:12 -0000
@@ -112,6 +112,13 @@ function _openid_normalize_url($url) {
     $normalized_url = 'http://'. $url;
   }
 
+  // Strip the fragment and fragment delimiter if present.
+  $fragment = strpos($normalized_url, '#');
+
+  if ($fragment !== FALSE) {
+    $normalized_url = substr($normalized_url, 0, $fragment);
+  }
+
   if (substr_count($normalized_url, '/') < 3) {
     $normalized_url .= '/';
   }
