summaryrefslogtreecommitdiffstats
path: root/etherpad/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'etherpad/src/main.js')
-rw-r--r--etherpad/src/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/etherpad/src/main.js b/etherpad/src/main.js
index 745f5fa..c881223 100644
--- a/etherpad/src/main.js
+++ b/etherpad/src/main.js
@@ -259,7 +259,8 @@ function checkRequestIsWellFormed() {
// checkHost()
//----------------------------------------------------------------
function checkHost() {
- if (appjet.config['etherpad.skipHostnameCheck'] == "true") {
+ var trueRegex = /\s*true\s*/i;
+ if (trueRegex.test(appjet.config['etherpad.skipHostnameCheck'])) {
return;
}