POST issue in plugins

cyberweb

New member
Joined
Dec 27, 2018
Messages
3
hello
i have some plugins that i was made them.
they are ok on enhanced skin but in evolution skin, i get POST error on my plugin and its first page does not send POST data to second page of this plugin!
i had checked query_string and getenv but there isn't any POST data and the POST array is empty!

please note that every thing on enhanced skin is ok and the issue is just on evolution skin.
 
May you attach the plugin to tickets.directadmin.com ? Please make sure you run the latest version of it.
 
Same is here:

Directadmin:
Code:
Compiled on 'CentOS 7.0 64-Bit'
Compile time: Jan 29 2019 at 02:22:05
Timestamp: '1548753645'
Compiled with IPv6

Evolution skin:
Code:
version=8a5a40e087e90899be940be7a6047002d1bfdcc0


The issue exists if a html FORM has an action attribute of the following kind:

HTML:
<form method="POST" action="/CMD_PLUGINS_ADMIN/hello_world/index.html">

There is no issue if no action attribute is specified:

HTML:
<form method="POST">

For example: /usr/local/directadmin/plugins/hello_world/admin/index.html

PHP:
#!/usr/local/bin/php
Hello World!<br>This script is a <b>Admin</b> Script being run as <?=getenv('USERNAME')?><br>
<textarea rows=30 cols=85><? phpinfo(INFO_ENVIRONMENT); ?></textarea>
<form method="POST" action="/CMD_PLUGINS_ADMIN/hello_world/index.html">
    <input name="submit" type="submit" />
</form>

will show the behavior mentioned here. The textarea after submitting data in a browser will show:

Code:
REQUEST_METHOD => GET
REQUEST_URI => /CMD_PLUGINS_ADMIN/hello_world/index.html?iframe=yes

and logs:

Code:
30/01/2019:23:59:19     37.xxx.10.xxx GET /IMG_LOGO HTTP/1.1    admin
30/01/2019:23:59:28     37.xxx.10.xxx GET /CMD_PLUGINS_ADMIN/load_monitor/settings.html HTTP/1.1        admin
30/01/2019:23:59:33     37.xxx.10.xxx POST /CMD_PLUGINS_ADMIN/load_monitor/settings.html HTTP/1.1       admin
30/01/2019:23:59:47     37.xxx.10.xxx GET /CMD_JSON_LANG HTTP/1.1
 
Back
Top