
05-23-2003, 01:48 AM
|
 |
|
|
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Today at 12:57 PM N9ne said this in Post #61
Hmm, that's odd, see, in newthread.php you put this code from this hack:
PHP Code:
// ############################### start new thread ###############################
if ($action=="newthread" and $foruminfo[mustread]=="1" and !$previewpost and !$preview) {
$mustreadtext = addslashes($foruminfo[mustreadtext]);
eval("dooutput(\"".gettemplate("newthread_mustread")."\");");
exit;
} elseif (($HTTP_POST_VARS['action']=="postnewthread" and $foruminfo[mustread]=="1") or ($action=="newthread" and $foruminfo[mustread]=="0") or ($previewpost)) {
It already has an addslashes there, so I don't know why it's doing this...
I'm out of ideas, maybe I'll think of something later. Right now I can't do anything as I have some huge exams to take, this whole week actually [some may have noticed my absence at vb.org], I've only got my last 2 tomorrow and then I will be back
|
You are adding slashes as you pull it from the db. You need to add slashes when you add it to the db in the query.
|