diff options
author | Renard | 2020-07-31 20:04:37 -0400 |
---|---|---|
committer | Renard | 2020-07-31 20:04:37 -0400 |
commit | 9a67d4d3c1bbec362fe6dc1c598b16559411b468 (patch) | |
tree | 9e7f554351a67874c615c08d32e0a83ba5368166 | |
parent | 95ceaf106ed9887ac9ca0899a970023b4c26cd11 (diff) | |
download | weabot-9a67d4d3c1bbec362fe6dc1c598b16559411b468.tar.gz weabot-9a67d4d3c1bbec362fe6dc1c598b16559411b468.tar.xz weabot-9a67d4d3c1bbec362fe6dc1c598b16559411b468.zip |
AAAAAAA
-rw-r--r-- | cgi/modapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py index 11fbf1e..18cbbfe 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 board = '" + _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 board = '" + _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: |