From 95fab8a421e10d8ed1174a76971bb585e81cc8a0 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 14 Nov 2012 07:40:10 +0100 Subject: [PATCH] header passed to _mgr functions --- web/Obj/brisk.phh | 6 ++++-- web/briskin5/Obj/briskin5.phh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index a94412e..bb51cb6 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2133,10 +2133,12 @@ class Room { return ($ret); } - function request_mgr(&$s_a_p, $enc, &$header_out, &$new_socket, $path, $addr, $get, $post, $cookie) + function request_mgr(&$s_a_p, $header, &$header_out, &$new_socket, $path, $addr, $get, $post, $cookie) { printf("NEW_SOCKET (root): %d\n", intval($new_socket)); + $enc = get_encoding($header); + force_no_cache($header_out); switch ($path) { @@ -2211,7 +2213,7 @@ class Room { $subs = "briskin5/"; $subs_l = strlen($subs); if (!strncmp($path, $subs, $subs_l)) { - $ret = Bin5::request_mgr(&$s_a_p, $enc, &$header_out, &$new_socket, substr($path, $subs_l) , $addr, $get, $post, $cookie); + $ret = Bin5::request_mgr(&$s_a_p, $header, &$header_out, &$new_socket, substr($path, $subs_l) , $addr, $get, $post, $cookie); return ($ret); } break; diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 815c8b4..52cedc5 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1387,10 +1387,12 @@ class Bin5 { return ($is_ab); } - static function request_mgr(&$s_a_p, $enc, &$header_out, &$new_socket, $path, $addr, $get, $post, $cookie) + static function request_mgr(&$s_a_p, $header, &$header_out, &$new_socket, $path, $addr, $get, $post, $cookie) { printf("NEW_SOCKET (root): %d\n", intval($new_socket)); + $enc = get_encoding($header); + if (($table_idx = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE) unset($table_idx); -- 2.17.1