summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-10-29 17:43:29 +0100
committerPatrick Simianer <p@simianer.de>2015-10-29 17:43:29 +0100
commitb4cea5379e6448beeaf1d1b3470e07d83d63dace (patch)
treec99a08b2db3549cfc781b020d5659c0a4814d587 /js
parentdd2d3df9f57b28998e97545b9cfa1078b94f0320 (diff)
common.js more string sanitizing
Diffstat (limited to 'js')
-rw-r--r--js/common.js2
1 files changed, 1 insertions, 1 deletions
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, " ");
}
/*