From 9f86ff884fe62c9a5c25e65a30fc6d7aae702a25 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Mon, 4 Sep 2000 22:21:10 +0000 Subject: @Add a php.ini option session.use_trans_sid to enable/disable trans-sid. (Sterling) --- ext/standard/output.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/standard/output.c') diff --git a/ext/standard/output.c b/ext/standard/output.c index 169ad2cd9e..451c39941b 100644 --- a/ext/standard/output.c +++ b/ext/standard/output.c @@ -22,6 +22,7 @@ #include "php.h" #include "ext/standard/head.h" #include "ext/session/php_session.h" +#include "basic_functions.h" #include "SAPI.h" /* output functions */ @@ -332,8 +333,11 @@ static int php_ub_body_write_no_header(const char *str, uint str_length) uint new_length=0; int result; OLS_FETCH(); + BLS_FETCH(); - session_adapt_uris(str, str_length, &newstr, &new_length); + if (BG(use_trans_sid)) { + session_adapt_uris(str, str_length, &newstr, &new_length); + } if (newstr) { str = newstr; -- cgit v1.2.1