1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-10 10:48:05 +00:00

Transliterate servername to safe ASCII

Fixes #3410
This commit is contained in:
Jermolene
2018-08-24 14:33:31 +01:00
parent 0f7ce7b67f
commit e237d8fa97
2 changed files with 7 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ function Server(options) {
this.routes = options.routes || [];
this.authenticators = options.authenticators || [];
this.wiki = options.wiki;
this.servername = this.wiki.getTiddlerText("$:/SiteTitle") || "TiddlyWiki5";
this.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText("$:/SiteTitle") || "TiddlyWiki5");
// Initialise the variables
this.variables = $tw.utils.extend({},this.defaultVariables);
if(options.variables) {