mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Made it less.. vulnerable...
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(isset($_GET['chan'])){
|
if(isset($_GET['chan'])){
|
||||||
header('Location: '.$_GET['chan']);
|
$chan = htmlspecialchars($_GET['chan']);
|
||||||
|
header('Location: '.$chan);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dir = scandir('./lists');
|
$dir = scandir('./lists');
|
||||||
@@ -21,18 +22,18 @@ foreach($dir as $files){
|
|||||||
<form name="ufo" action="" class="daform nomargin" id="base" method="get" onsubmit="null;" >
|
<form name="ufo" action="" class="daform nomargin" id="base" method="get" onsubmit="null;" >
|
||||||
<input list="searches" id="search" name="chan" type="text" class="search_input innbox" spellcheck="false" maxlength="15" placeholder="Type Channel Name" autofocus/>
|
<input list="searches" id="search" name="chan" type="text" class="search_input innbox" spellcheck="false" maxlength="15" placeholder="Type Channel Name" autofocus/>
|
||||||
<datalist id="searches">
|
<datalist id="searches">
|
||||||
<?php foreach($channels as $channel){echo "<option value='".urldecode($channel)."'> ";} ?>
|
<?php foreach($channels as $channel){echo "<option value='".htmlspecialchars(urldecode($channel))."'> ";} ?>
|
||||||
</datalist>
|
</datalist>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<center>
|
||||||
<div class="channels" id="channels">Active Channels<br>
|
<div class="channels" id="channels">Active Channels<br>
|
||||||
<?php foreach($channels as $channel){echo "<a class='channel' href='/".$channel."'>".urldecode($channel)."</a>";} ?>
|
<?php foreach($channels as $channel){echo "<a class='channel' href='/".$channel."'>".htmlspecialchars(urldecode($channel))."</a>";} ?>
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer small centered top anim bottom">© 2014 <a class="anim" href="//nixo.no">Nixo</a> & <a class="anim" href="//kasperrt.no">KasperRT</a> </div>
|
<div class="footer small centered top anim bottom">© 2014 <a class="anim" href="//nixo.no">Nixo</a> & <a class="anim" href="//kasperrt.no">KasperRT</a> </div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user