diff --git a/sites/all/modules/unl/unl_migration.php b/sites/all/modules/unl/unl_migration.php
index 8c79fa1e683de67d4a1f27d7dec86d3532fd1235..3fda6a4cf5d082361995341c522599ac23f71f0f 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;