Martinss
01-18-2008, 07:26 PM
Hello there everybody!
At first - sorry, for my bad english.
I wanted to ask a little help in PHP.
At first - i got this image upload site img.lejup.lv
And theres a little problem.
Normaly, when image displays with viewer, it displays like that:
img.lejup.lv/viewerisz.php?id=59.jpg
But someone found, that there could be added something more in browser bar, to get this:
img.lejup.lv/viewerisz.php?id=%27%3E%3Ch1%3EU%20FAIL
Can someone give me any solution?
viewerisz.php code is right below:
<?php
include "konfiguracija.php";
echo "<center>";
echo "<br>";
if ($_GET['id'])
{
$id = $_GET['id'];
}
else
{
die ("Nepareizs attela ID");
}
echo "<body bgcolor='#FFFFFF'>";
echo "<table border='0' bgcolor='FFFFFF'>";
echo "<tr><td>";
echo "<img src='./$path" . $id . "'>";
echo '</td><a href="javascript:history.go(-1);" title="uz iepriekšējo lapu">Atpakaļ</a> </tr>';
echo "</div>";
?>
All simple upload holes i repaired, but with this simple one, can't get right.
At first - sorry, for my bad english.
I wanted to ask a little help in PHP.
At first - i got this image upload site img.lejup.lv
And theres a little problem.
Normaly, when image displays with viewer, it displays like that:
img.lejup.lv/viewerisz.php?id=59.jpg
But someone found, that there could be added something more in browser bar, to get this:
img.lejup.lv/viewerisz.php?id=%27%3E%3Ch1%3EU%20FAIL
Can someone give me any solution?
viewerisz.php code is right below:
<?php
include "konfiguracija.php";
echo "<center>";
echo "<br>";
if ($_GET['id'])
{
$id = $_GET['id'];
}
else
{
die ("Nepareizs attela ID");
}
echo "<body bgcolor='#FFFFFF'>";
echo "<table border='0' bgcolor='FFFFFF'>";
echo "<tr><td>";
echo "<img src='./$path" . $id . "'>";
echo '</td><a href="javascript:history.go(-1);" title="uz iepriekšējo lapu">Atpakaļ</a> </tr>';
echo "</div>";
?>
All simple upload holes i repaired, but with this simple one, can't get right.
