diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-17 06:36:36 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-17 06:36:36 -0400 |
| commit | 5fd82a0af94d171db46f09b49a41fd5759e665f3 (patch) | |
| tree | 1df35c05aab0a1a70e5b4a0e43f2435f4f536f3c /www | |
| parent | 7bffc0e73848b6315fc8a89277f45668801a674b (diff) | |
stripped ES ip too
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/LogCtrl.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/LogCtrl.js b/www/js/LogCtrl.js index 36c1e42f..1103a423 100644 --- a/www/js/LogCtrl.js +++ b/www/js/LogCtrl.js @@ -114,6 +114,14 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo var re3 = new RegExp(urlNoProtocol, "g"); logstring = logstring.replace(re3, "<server>"); } + + urlNoProtocol = loginData.eventServer.replace(/.*?:\/\//, ""); + if (urlNoProtocol != "") + { + var re4 = new RegExp(urlNoProtocol, "g"); + logstring = logstring.replace(re4, "<server>"); + } + var email = { to: zm.authoremail, subject: 'zmNinja Logs', |
