From b4cea5379e6448beeaf1d1b3470e07d83d63dace Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 29 Oct 2015 17:43:29 +0100 Subject: common.js more string sanitizing --- js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/common.js b/js/common.js index 560f63d..92dc74b 100644 --- a/js/common.js +++ b/js/common.js @@ -38,7 +38,7 @@ function toggleDisplay(id) */ function trim(s) { - return s.replace(/^\s+|\s+$/g, ''); + return s.replace(/(\||\n|\t)/g, " ").replace(/^\s+|\s+$/g, '').replace(/\s+/g, " "); } /* -- cgit v1.2.3