mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-12-22 17:42:40 +00:00
Fixed error with blank urls causing infinite loop
This commit is contained in:
parent
324b422975
commit
c6199a77c6
@ -21,7 +21,7 @@ if(!$_POST['submit'])
|
||||
$dest=$_POST['dest'];
|
||||
if($_POST["submit"])
|
||||
{
|
||||
if(isset($_POST['dest']))
|
||||
if(isset($_POST['dest']) && $dest != "")
|
||||
{
|
||||
$myFile = $random.".html";
|
||||
$fh = fopen($myFile, 'w') or die("can't open file");
|
||||
@ -47,6 +47,14 @@ your link is available here:<br>
|
||||
<a href="http://unps-gama.tk">Home</a>
|
||||
|
||||
';
|
||||
}if($dest == ""){
|
||||
echo '
|
||||
Sorry, you are not able to shorten something without a url <br>
|
||||
<a href="index.php">Back to index</a><br>
|
||||
<a href="http://unps-gama.tk">Home</a>
|
||||
|
||||
';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user