mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
http/examine: added dest param for cmd, debug msg fixes
This commit is contained in:
parent
b8a290ab46
commit
af95219a9e
@ -1352,8 +1352,9 @@ _PAGES_start_description
|
||||
|<script>
|
||||
|var longer = 44
|
||||
|
|
||||
|function cmd(wish) {
|
||||
|function cmd(wish, dest) {
|
||||
| Pef.cmd.value = wish
|
||||
| Pef.dest.value = dest || ''
|
||||
| Pef.submit()
|
||||
| longer = 44
|
||||
| return false
|
||||
|
@ -15,7 +15,7 @@ htget(prot, query, headers, qs) {
|
||||
} else unless (user->validToken(query["token"])) {
|
||||
t = "_error_invalid_authentication_token";
|
||||
} else if ((t = query["cmd"]) && strlen(t)) {
|
||||
user->parsecmd(t); // htcmd?
|
||||
user->parsecmd(t, query["dest"]); // htcmd?
|
||||
t = "_echo_execute_web";
|
||||
} else if (t = user->htDescription(0, query, headers, qs, "")) {
|
||||
P4(("result: %O\n", t))
|
||||
|
@ -14,7 +14,7 @@ http_ok(string prot, string type, string extra) {
|
||||
out = type || extra ? htheaders(type, extra) +"\n"
|
||||
: "Content-type: " DEFAULT_CONTENT_TYPE "\n\n";
|
||||
emit(out = HTTP_SVERS " 200 Sure\n"+ out);
|
||||
P3((out))
|
||||
P3(("http_ok: out: %O\s", out))
|
||||
}
|
||||
|
||||
varargs http_error(string prot, int code, string comment, string html) {
|
||||
|
@ -86,7 +86,7 @@ parse_url(input) {
|
||||
parse_header(input) {
|
||||
string key, val;
|
||||
|
||||
P4((input + "\n"))
|
||||
P4(("parse_header(%O)\n", input))
|
||||
|
||||
unless (input == "") {
|
||||
if (sscanf(input, "%s:%1.0t%s", key, val)) {
|
||||
|
Loading…
Reference in New Issue
Block a user