mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed slashes issues in channel-names
This commit is contained in:
		@@ -114,6 +114,7 @@ app.use('/assets/admin', function(req, res, next) {
 | 
				
			|||||||
app.use('/assets', express.static(publicPath + '/assets'));
 | 
					app.use('/assets', express.static(publicPath + '/assets'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
app.use(function (req, res, next) {
 | 
					app.use(function (req, res, next) {
 | 
				
			||||||
 | 
						console.log("here");
 | 
				
			||||||
  res.status(404);
 | 
					  res.status(404);
 | 
				
			||||||
  res.redirect("/404");
 | 
					  res.redirect("/404");
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -320,7 +320,7 @@ var Frontpage = {
 | 
				
			|||||||
        Helper.css("#channel-load", "display", "block");
 | 
					        Helper.css("#channel-load", "display", "block");
 | 
				
			||||||
        window.scrollTo(0, 0);
 | 
					        window.scrollTo(0, 0);
 | 
				
			||||||
        frontpage = false;
 | 
					        frontpage = false;
 | 
				
			||||||
        new_channel = new_channel.toLowerCase();
 | 
					        new_channel = Helper.encodeChannelName(new_channel.toLowerCase());
 | 
				
			||||||
        clearTimeout(rotation_timeout);
 | 
					        clearTimeout(rotation_timeout);
 | 
				
			||||||
        if(Helper.mobilecheck()){
 | 
					        if(Helper.mobilecheck()){
 | 
				
			||||||
            Helper.log(["removing all listeners"]);
 | 
					            Helper.log(["removing all listeners"]);
 | 
				
			||||||
@@ -336,6 +336,7 @@ var Frontpage = {
 | 
				
			|||||||
                Helper.tooltip(document.querySelectorAll(".pin")[0].parentElement.parentElement.parentElement, "destroy");
 | 
					                Helper.tooltip(document.querySelectorAll(".pin")[0].parentElement.parentElement.parentElement, "destroy");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        currently_showing_channels = 1;
 | 
					        currently_showing_channels = 1;
 | 
				
			||||||
        clearTimeout(retry_frontpage);
 | 
					        clearTimeout(retry_frontpage);
 | 
				
			||||||
        Helper.ajax({
 | 
					        Helper.ajax({
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@
 | 
				
			|||||||
            autocomplete="off"
 | 
					            autocomplete="off"
 | 
				
			||||||
            autofocus
 | 
					            autofocus
 | 
				
			||||||
            required
 | 
					            required
 | 
				
			||||||
            
 | 
					            pattern="[^/\\]+"
 | 
				
			||||||
            spellcheck="false"
 | 
					            spellcheck="false"
 | 
				
			||||||
            maxlength="18"
 | 
					            maxlength="18"
 | 
				
			||||||
            data-length="18"
 | 
					            data-length="18"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user