Removed a lot of malformed encoded things

This commit is contained in:
Kasper Rynning-Tønnesen
2016-05-25 17:58:46 +02:00
parent d87a1bb4d1
commit 19aaa86cea
3 changed files with 10 additions and 9 deletions

View File

@@ -4,8 +4,7 @@
if(isset($_GET['chan'])) {header('Location: '.$_GET['chan']); exit;}
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
if($list[1]==""||!isset($list[1])||count($list)<=1){$list="";include('php/nochan.php');die();}
else $list=$list[1];
else $list=preg_replace("/[^A-Za-z0-9 ]/", '', $list[1]);
?>
<html lang="en">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">

File diff suppressed because one or more lines are too long

View File

@@ -60,11 +60,13 @@ var connection_options = {
var fromFront = false;
var fromChannel = false;
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistration().then(function(r) {
r.unregister();
});
};
try {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistration().then(function(r) {
r.unregister();
});
};
} catch(e){}
$().ready(function(){
if(!fromFront && window.location.pathname != "/") init();