diff --git a/pathologic.module b/pathologic.module
index 20053d8..af8d3a7 100644
--- a/pathologic.module
+++ b/pathologic.module
@@ -82,7 +82,7 @@ function _pathologic_filter($text, $filter, $format, $langcode, $cache, $cache_i
   // Get the base URL and explode it into component parts. We add these parts
   // to the exploded local paths settings later.
   global $base_url;
-  $base_url_parts = parse_url($base_url . '/');
+  $base_url_parts = @parse_url($base_url . '/');
   // Since we have to do some gnarly processing even before we do the *really*
   // gnarly processing, let's static save the settings - it'll speed things up
   // if, for example, we're importing many nodes, and not slow things down too
@@ -98,7 +98,7 @@ function _pathologic_filter($text, $filter, $format, $langcode, $cache, $cache_i
       // @see http://drupal.org/node/1727492
       $local_paths = array_filter(array_map('trim', explode("\n", $filter->settings['local_paths'])));
       foreach ($local_paths as $local) {
-        $parts = parse_url($local);
+        $parts = @parse_url($local);
         // Okay, what the hellish "if" statement is doing below is checking to
         // make sure we aren't about to add a path to our array of exploded
         // local paths which matches the current "local" path. We consider it
@@ -192,7 +192,7 @@ function _pathologic_replace($matches) {
   // @see http://drupal.org/node/1672932
   $original_url = htmlspecialchars_decode($matches[2]);
   // …and parse the URL
-  $parts = parse_url($original_url);
+  $parts = @parse_url($original_url);
   // Do some more early tests to see if we should just give up now.
   if (
     // If parse_url() failed, give up.
@@ -229,7 +229,7 @@ function _pathologic_replace($matches) {
   if (isset($parts['scheme']) && $parts['scheme'] === 'files') {
     // Path Filter "files:" support. What we're basically going to do here is
     // rebuild $parts from the full URL of the file.
-    $new_parts = parse_url(file_create_url(file_default_scheme() . '://' . $parts['path']));
+    $new_parts = @parse_url(file_create_url(file_default_scheme() . '://' . $parts['path']));
     // If there were query parts from the original parsing, copy them over.
     if (!empty($parts['query'])) {
       $new_parts['query'] = $parts['query'];
@@ -422,7 +422,7 @@ function _pathologic_replace($matches) {
     // We don't want to convert the URL in that case. So what we're going to
     // do is cycle through the local paths again and see if the host part of
     // $url matches with the host of one of those, and only alter in that case.
-    $url_parts = parse_url($url);
+    $url_parts = @parse_url($url);
     if (!empty($url_parts['host']) && $url_parts['host'] === $settings['current_settings']['base_url_host']) {
       $url = _pathologic_url_to_protocol_relative($url);
     }
