SQL error in nntp.php [message #27338] |
Mon, 05 September 2005 12:12  |
KVentz
 Messages: 65 Registered: November 2002 Location: Moscow, Russia
Karma: 0
|
Member |
|
|
When trying to run nntp.php with wrong parameter (news group number that not exists) it returns an SQL error:
%/usr/local/bin/php -q /hosting/provider/root/forum/scripts/nntp.php 32
(/hosting/provider/root/forum/include/theme/default/db.inc:74<br />
/hosting/provider/root/forum/include/theme/default/db.inc:174<br />
/hosting/provider/root/forum/scripts/nntp.php:80<br />
) 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1<br />
Query: SELECT id, forum_opt, message_threshold, (max_attach_size * 1024) AS max_attach_size, max_file_attachments FROM fud2_forum WHERE id=<br />
Server Version: 4.1.0-alpha-log<br />
Maybe better "Invalid group number" error?
|
|
|
Re: SQL error in nntp.php [message #27362 is a reply to message #27338] |
Tue, 06 September 2005 01:01   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Such a check already exists in the code (in later versions), what input did you supply?
FUDforum Core Developer
|
|
|
|
|