Fixed slashes issues in channel-names

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-31 15:49:17 +02:00
parent ded625ae25
commit f7664ac32b
3 changed files with 4 additions and 2 deletions

View File

@@ -114,6 +114,7 @@ app.use('/assets/admin', function(req, res, next) {
app.use('/assets', express.static(publicPath + '/assets'));
app.use(function (req, res, next) {
console.log("here");
res.status(404);
res.redirect("/404");
})

View File

@@ -320,7 +320,7 @@ var Frontpage = {
Helper.css("#channel-load", "display", "block");
window.scrollTo(0, 0);
frontpage = false;
new_channel = new_channel.toLowerCase();
new_channel = Helper.encodeChannelName(new_channel.toLowerCase());
clearTimeout(rotation_timeout);
if(Helper.mobilecheck()){
Helper.log(["removing all listeners"]);
@@ -336,6 +336,7 @@ var Frontpage = {
Helper.tooltip(document.querySelectorAll(".pin")[0].parentElement.parentElement.parentElement, "destroy");
}
}
currently_showing_channels = 1;
clearTimeout(retry_frontpage);
Helper.ajax({

View File

@@ -13,7 +13,7 @@
autocomplete="off"
autofocus
required
pattern="[^/\\]+"
spellcheck="false"
maxlength="18"
data-length="18"