diff --git a/epubfs.php b/epubfs.php index d9dd6ef..c86c571 100644 --- a/epubfs.php +++ b/epubfs.php @@ -48,7 +48,7 @@ try { } $comp = $book->getComponentName ($component, $path); if (!$comp) return "#"; - return "$method'epubfs.php?{$add}comp={$comp}{$hash}'{$end}"; + return str_replace ("&", "&", "{$method}'epubfs.php?{$add}comp={$comp}{$hash}'{$end}"); }; $data = preg_replace_callback ("/(src=)[\"']([^:]*?)[\"']/", $callback, $data);