From 77e7c77e20129019008d2ad0b8cf390cdc7eebb4 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 1 Feb 2019 19:35:31 +0100 Subject: [PATCH] use String().trim() --- lam/templates/lib/500_lam.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/templates/lib/500_lam.js b/lam/templates/lib/500_lam.js index dfeb5b94..83966e4a 100644 --- a/lam/templates/lib/500_lam.js +++ b/lam/templates/lib/500_lam.js @@ -1,7 +1,7 @@ /** This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2003 - 2018 Roland Gruber + Copyright (C) 2003 - 2019 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -783,7 +783,7 @@ window.lam.form = window.lam.form || {}; window.lam.form.autoTrim = function() { jQuery('form').submit(function(e) { jQuery('.lam-autotrim').each(function() { - this.value = String.trim(this.value); + this.value = String(this.value).trim(); }); }); };