skins: the settings class understands skinName. Send skinName value to the client

skinName must be a single string (no directory separators in it) pointing to an
existing directory under /src/static/skins.
In case these conditions are not met, its value is rewritten to "no-skin".

Also, the value of skinName if sent to the client via clientVars for allowing
its use it in the browser.
This commit is contained in:
muxator 2018-08-19 03:36:18 +02:00 committed by muxator
parent 7edc0fea16
commit e34c74b24d
2 changed files with 45 additions and 0 deletions

View file

@ -1268,6 +1268,7 @@ function handleClientReady(client, message)
// client is read only you would open a security hole 1 swedish
// mile wide...
var clientVars = {
"skinName": settings.skinName,
"accountPrivs": {
"maxRevisions": 100
},