aboutsummaryrefslogtreecommitdiff
path: root/cgi/modapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/modapi.py')
-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