mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed a lot of malformed encoded things
This commit is contained in:
@@ -4,8 +4,7 @@
|
|||||||
if(isset($_GET['chan'])) {header('Location: '.$_GET['chan']); exit;}
|
if(isset($_GET['chan'])) {header('Location: '.$_GET['chan']); exit;}
|
||||||
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
||||||
if($list[1]==""||!isset($list[1])||count($list)<=1){$list="";include('php/nochan.php');die();}
|
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">
|
<html lang="en">
|
||||||
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||||
|
|||||||
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -60,11 +60,13 @@ var connection_options = {
|
|||||||
var fromFront = false;
|
var fromFront = false;
|
||||||
var fromChannel = false;
|
var fromChannel = false;
|
||||||
|
|
||||||
if ('serviceWorker' in navigator) {
|
try {
|
||||||
navigator.serviceWorker.getRegistration().then(function(r) {
|
if ('serviceWorker' in navigator) {
|
||||||
r.unregister();
|
navigator.serviceWorker.getRegistration().then(function(r) {
|
||||||
});
|
r.unregister();
|
||||||
};
|
});
|
||||||
|
};
|
||||||
|
} catch(e){}
|
||||||
|
|
||||||
$().ready(function(){
|
$().ready(function(){
|
||||||
if(!fromFront && window.location.pathname != "/") init();
|
if(!fromFront && window.location.pathname != "/") init();
|
||||||
|
|||||||
Reference in New Issue
Block a user