aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar Renard 2020-07-31 20:07:34 -0400
committerLibravatar Renard 2020-07-31 20:07:34 -0400
commit6c08c2a6b94ab1a9d1c5539b16a74b87fe00739c (patch)
treef7724fcb291d8b3a221c8a6212f916b43c58086d /cgi
parent9a67d4d3c1bbec362fe6dc1c598b16559411b468 (diff)
downloadweabot-6c08c2a6b94ab1a9d1c5539b16a74b87fe00739c.tar.gz
weabot-6c08c2a6b94ab1a9d1c5539b16a74b87fe00739c.tar.xz
weabot-6c08c2a6b94ab1a9d1c5539b16a74b87fe00739c.zip
REEEEEEEE
Diffstat (limited to 'cgi')
-rw-r--r--cgi/modapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py
index 18cbbfe..ff18b7c 100644
--- a/cgi/modapi.py
+++ b/cgi/modapi.py
@@ -80,12 +80,12 @@ def api_process(self, path_split):
if 'id' in formdata.keys():
id = formdata.get('id')
post = FetchOne("SELECT `id`, `boardid`, `parentid`,`timestamp`, `name`, `tripcode`, `email` ,`subject`,`message`,`file`,`thumb`, INET6_NTOA(`ip`) as ip,`IS_DELETED` AS `deleted`, `bumped`, `last`, `locked` FROM `posts` FROM `posts` WHERE `id` = '" +
- _mysql.escape_string(id) + "' AND boardid = '" + _mysql.escape_string(board["id"]) + "'")
+ _mysql.escape_string(id) + "' AND `boardid` = '" + _mysql.escape_string(board["id"]) + "'")
values['post'] = post
if 'parentid' in formdata.keys():
id = formdata.get('parentid')
post = FetchAll("SELECT `id`, `boardid`, `parentid`,`timestamp`, `name`, `tripcode`, `email` ,`subject`,`message`,`file`,`thumb`, INET6_NTOA(`ip`) as ip,`IS_DELETED` AS `deleted`, `bumped`, `last`, `locked` FROM `posts` FROM `posts` WHERE `parentid` = '" +
- _mysql.escape_string(id) + "' AND boardid = '" + _mysql.escape_string(board["id"]) + "'")
+ _mysql.escape_string(id) + "' AND `boardid` = '" + _mysql.escape_string(board["id"]) + "'")
values['posts'] = post
elif method == 'reports':
if len(path_split) > 3: