--- gallery.module	2005-09-29 16:16:01.000000000 -0400
+++ gallery.module.searchfix	2005-10-16 17:39:27.000000000 -0400
@@ -244,8 +244,12 @@
 		}
 	      }
 	    }
+      /* kiz_0987: G2 uses &amp; in its returned links (when Drupal is not using clean_urls). Drupal takes this
+         and reformats it, replacing all '&' in the link with &amp;, so you end up with '&amp;amp;'. There should
+         be an elegant solution, but just replace the G2 &amp; for now */
+      $link = str_replace('&amp;', '&', $urlGenerator->generateUrl(array('itemId' => $result['itemId'])));        
 	    $find[] = array('title' => $result['fields'][0]['value'],
-			    'link'  => $urlGenerator->generateUrl(array('itemId' => $result['itemId'])),
+			    'link'  => $link,
 			    'type'  => $module['name'],
 			    'snippet' => implode('<br />', $excerpt));
 	  }
