mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed encoding-issue with channelnames
This commit is contained in:
@@ -21,6 +21,7 @@ var app = express();
|
||||
var compression = require('compression');
|
||||
var exphbs = require('express-handlebars');
|
||||
var cors = require('cors');
|
||||
var Functions = require(pathThumbnails + '/handlers/functions.js');
|
||||
|
||||
var hbs = exphbs.create({
|
||||
defaultLayout: publicPath + '/layouts/client/main',
|
||||
@@ -33,6 +34,10 @@ var hbs = exphbs.create({
|
||||
} else {
|
||||
return opts.inverse(this)
|
||||
}
|
||||
},
|
||||
decodeString: function(s) {
|
||||
if(s == undefined) return s;
|
||||
return Functions.decodeChannelName(s);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user