Index: potx.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.module,v
retrieving revision 1.1.2.12.2.2.2.8
diff -u -p -r1.1.2.12.2.2.2.8 potx.module
--- potx.module	19 Oct 2008 22:07:50 -0000	1.1.2.12.2.2.2.8
+++ potx.module	12 Mar 2009 14:38:57 -0000
@@ -114,10 +114,9 @@ function potx_select_form_submit($form, 
 
   if (isset($pathinfo['extension'])) {
     // A specific module or theme file was requested (otherwise there should be no extension). 
-    $filename = preg_replace('!^(.+)'. preg_quote($pathinfo['extension'], '!') .'$!', '\1', $pathinfo['basename']);
-    $files = _potx_explore_dir($pathinfo['dirname'] .'/', $filename);
+    $files = _potx_explore_dir($pathinfo['dirname'] .'/', $pathinfo['filename']);
     $strip_prefix = 1 + strlen($pathinfo['dirname']);
-    $outputname = $filename;
+    $outputname = $pathinfo['filename'];
   }
   // A directory name was requested.
   else {
