From a6a1673d8bdd536b8088306b80d516c10ceb1333 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 27 Nov 2013 10:40:55 +0100 Subject: [PATCH] Fix window.name security bug --- src/js/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index 3cf57ba..3785a26 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -13,11 +13,16 @@ require([ 'js/controller/read', 'js/controller/write', 'js/controller/navigation', + 'cryptoLib/util', 'angularRoute', 'angularTouch' -], function(angular, DialogCtrl, AccountCtrl, LoginCtrl, LoginInitialCtrl, LoginNewDeviceCtrl, LoginExistingCtrl, MailListCtrl, ReadCtrl, WriteCtrl, NavigationCtrl) { +], function(angular, DialogCtrl, AccountCtrl, LoginCtrl, LoginInitialCtrl, LoginNewDeviceCtrl, LoginExistingCtrl, MailListCtrl, ReadCtrl, WriteCtrl, NavigationCtrl, util) { 'use strict'; + // reset window.name + window.name = util.UUID(); + + // init main angular module including dependencies var app = angular.module('mail', ['ngRoute', 'ngTouch', 'navigation', 'mail-list', 'write', 'read', 'login-new-device']); // set router paths