Hi.
Sorry I forgot to post I already add slashes when I add name to db.
$name_file=$_FILES['fileupload']['name'];
$name_image=trim($name_file);
$name_image=addslashes($name_image);
//strips all the tags
$name_file=strip_tags($name_file);
//removes white spaces before and after the name
$name_file = trim($name_file);
//removes white spaces inside the name
$name_file=str_replace(" ", "", $name_file);
$name_image=str_replace(" ", "", $name_image);
$directory= PATH;
$directory .= "/$name_file";
move_uploaded_file($_FILES['fileupload']['tmp_name'], "$directory") or die("Couldn't copy");
chmod("$directory", 0755);
create_anime($_POST['name'],$_POST['userid'], $_POST['ip'], $_POST['revdns'], $_POST['rating'],
$_POST['placesb'], $_POST['review'], $name_image);
Anyway I tried removing the slashes
$image_path= IMAGE_PATH;
$image_path .= stripslashes($image);
$user_name=get_nick($anime->get_userid());
$display_block .= "<table border='1'>
<tr>
<td><img src='$image_path'></td>
<td>'image.php?name=$image_path'</td>
</tr>
</table>";
And it still cuts of the name near the '.
so path looks like this:
http://localhost/projects/anime/images/evilgu
instead of
http://localhost/projects/anime/images/evilgu'y.gif