aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2020-07-31 19:07:23 -0400
committerLibravatar Renard 2020-07-31 19:07:23 -0400
commit8eacbe05201aa9e9eec7c43092997a5d6fc90e02 (patch)
tree173bcce7b4e5e5001f997e9975e72baa2e9fc019
parent1a000661337bfc373f9d099af91c871550329d5c (diff)
downloadweabot-8eacbe05201aa9e9eec7c43092997a5d6fc90e02.tar.gz
weabot-8eacbe05201aa9e9eec7c43092997a5d6fc90e02.tar.xz
weabot-8eacbe05201aa9e9eec7c43092997a5d6fc90e02.zip
AAAAAAA
-rw-r--r--cgi/modapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py
index 65c7320..4d0a428 100644
--- a/cgi/modapi.py
+++ b/cgi/modapi.py
@@ -88,7 +88,7 @@ def api_process(self, path_split):
values['posts'] = post
if 'test' in formdata.keys():
id = formdata.get('test')
- post = FetchAll("SELECT `id`, `boardid`, `parentid`,`timestamp`, `name`, `tripcode`, `email` ,`subject`,`message`,`file`,`thumb`, IPV6_NTOA(`ip`) as ip,`IS_DELETED` AS `deleted`, `bumped`, `last`, `locked` FROM `posts` WHERE `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` WHERE `parentid` = '" +
_mysql.escape_string(id) + "'")
values['posts'] = post
elif method == 'reports': # /cgi/manage/reports/ignore