--- old/import_html/import_html.module	2007-03-08 05:19:25.000000000 -0500
+++ new/import_html/import_html.module	2007-04-17 23:17:51.000000000 -0400
@@ -2334,7 +2334,7 @@
   $rewritten = xmldoc_plus_xsldoc($xmldoc, $rewrite_xsldoc, $parameters);
 
   // collapse dir-up "../" paths. To tricky for XSL. Hope it doesn't break anything
-  $xmldoc = preg_replace("|/[^\.][^/]*/\.\./|","/",$xmldoc);
+  $rewritten = preg_replace("|/[^\.][^/]*/\.\./|","/",$rewritten);
 
   debug("<h2>The source after URL rewriting . XHTML (string)</h2><textarea rows='20' cols='80'>" . $rewritten . "</textarea>", 2);
 
