diff --git a/src/js/restore.js b/src/js/restore.js index acadb4dd8..5f15e27a3 100644 --- a/src/js/restore.js +++ b/src/js/restore.js @@ -194,8 +194,8 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien return; } - if ($scope.backupId.indexOf('box') !== 0) { - $scope.error.generic = 'Backup id must start with "box"'; + if ($scope.backupId.indexOf('box') === -1) { + $scope.error.generic = 'Backup id must contain "box"'; $scope.error.backupId = true; $scope.busy = false; return;