--- drupal7-7.14.orig/modules/overlay/overlay-parent.js
+++ drupal7-7.14/modules/overlay/overlay-parent.js
@@ -338,6 +338,8 @@ Drupal.overlay.setFocusBefore = function
 /**
  * Check if the given link is in the administrative section of the site.
  *
+ * Deprecated. Use Drupal.urlIsLocal() instead.
+ *
  * @param url
  *   The url to be tested.
  *
@@ -345,7 +347,7 @@ Drupal.overlay.setFocusBefore = function
  *   TRUE if the URL represents an administrative link, FALSE otherwise.
  */
 Drupal.overlay.isAdminLink = function (url) {
-  if (Drupal.overlay.isExternalLink(url)) {
+  if (!Drupal.urlIsLocal(url)) {
     return false;
   }
 
@@ -380,8 +382,7 @@ Drupal.overlay.isAdminLink = function (u
  *   TRUE if the URL is external to the site, FALSE otherwise.
  */
 Drupal.overlay.isExternalLink = function (url) {
-  var re = RegExp('^((f|ht)tps?:)?//(?!' + window.location.host + ')');
-  return re.test(url);
+  return !Drupal.urlIsLocal(url);
 };
 
 /**
@@ -400,7 +401,7 @@ Drupal.overlay.isExternalLink = function
  */
 Drupal.overlay.getInternalUrl = function (path) {
   var url = Drupal.settings.basePath + path;
-  if (!this.isExternalLink(url)) {
+  if (Drupal.urlIsLocal(url)) {
     return url;
   }
 };
