diff --git a/sites/all/modules/unl/unl_migration.php b/sites/all/modules/unl/unl_migration.php
index 7fd9ce6a8ccc809f58db8f19752e5da331e13122..84d17050213bdb421dbb6265f59f6fdae800a66c 100644
--- a/sites/all/modules/unl/unl_migration.php
+++ b/sites/all/modules/unl/unl_migration.php
@@ -186,6 +186,11 @@ class Unl_Migration_Tool
         if (substr($baseUrl, -1) != '/') {
             $baseUrl .= '/';
         }
+        
+        $frontierPath = trim ($frontierPath);
+        if ($frontierPath && substr($frontierPath, -1) != '/') {
+          $frontierPath .= '/';
+        }
 
         $this->_frontierPath = $frontierPath;
         $this->_frontierUser = $frontierUser;