Index: pathologic.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathologic/pathologic.module,v
retrieving revision 1.7.2.9.2.6
diff -u -r1.7.2.9.2.6 pathologic.module
--- pathologic.module	4 Jun 2010 18:47:11 -0000	1.7.2.9.2.6
+++ pathologic.module	9 Jun 2010 04:47:56 -0000
@@ -48,6 +48,22 @@
 }
 
 /**
+ * Implementation of hook_file_url_alter().
+ */
+function pathologic_file_url_alter(&$path, $format = 1) {
+
+  // Construct dummy test string and run input filter on it
+  $text_old = '<img src="'.$path.'"/>';
+  $text_new = _pathologic($text_old, $format);
+
+  // If the test case was modified by filter, parse out and return the URL
+  if ($text_old != $text_new) {
+    $result = explode('"', $text_new);
+    $path = $result[1];
+  } 
+}
+
+/**
  * Pathologic filter callback.
  */
 function _pathologic($text, $format) {

