There is a problem with post in Abo.CMS. There is such a code in the module:
case "useredit": if (!$permissions["e"]) $main->message_access_denied($this->module_name, $action); global $request_id, $request_step; $main->include_main_blocks_2($this->module_name."_useradd.html", $this->tpl_path); $tpl->prepare(); if(!$request_step || $request_step == 1){ $user = $this->getUser($request_id); $user['id'] = (int) $user['id']; $user['form_action'] = $baseurl . '&action=useredit&step=2'; $user['photolink'] = '' . $user['photo']; $tpl->assign($user); if($user['photo']){ $tpl->newBlock('block_photo_exists'); $tpl->assign($user); } } elseif($request_step == 2){ } break;
When $request_step = 1
everything works fine and displays the edit form ( method = post
, action
contains 'action=useredit&step=2'
). But for $request_step = 2
throws a database query error. If you do not send the form, and manually enter &step=2
, then everything works. In my opinion, an error occurs when sending data with a post, but I, for the life of me, don’t understand what query to the database here can cause an error. If anyone knows the features of Abo.CMS, please help.
Thank you in advance.