Index: gallery_base.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gallery/gallery_base.inc,v
retrieving revision 1.6.2.47
diff -u -r1.6.2.47 gallery_base.inc
--- gallery_base.inc	14 Nov 2007 00:56:46 -0000	1.6.2.47
+++ gallery_base.inc	18 Nov 2007 22:44:57 -0000
@@ -132,14 +132,9 @@
  * (handleRequest extension with error handling)
  */
 function gallery_handle_request() {
-  // Remove trailing slash from the G2 path
-  // (otherwise Drupal doesnt recognize the path)
-  if (!empty($_GET['g2_path'])) {
-    $_GET['g2_path'] = rtrim($_GET['g2_path'], '/');
-    // Remove the language-prefix for G2
-    if (module_exists('i18n')) {
-      i18n_get_lang_prefix($_GET['g2_path'], TRUE);
-    }
+  // Remove the language-prefix for G2
+  if (!empty($_GET['g2_path']) && module_exists('i18n')) {
+    i18n_get_lang_prefix($_GET['g2_path'], TRUE);
   }
   
   ob_start();
