diff options
author | Sterling Hughes <sterling@php.net> | 2000-09-04 22:21:10 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2000-09-04 22:21:10 +0000 |
commit | 9f86ff884fe62c9a5c25e65a30fc6d7aae702a25 (patch) | |
tree | 5be3c714efb92a5aed7925a25545566f314fd63b /ext/standard/output.c | |
parent | 5dca99232e64336a389c73d19342ab224074bc8b (diff) | |
download | php-git-9f86ff884fe62c9a5c25e65a30fc6d7aae702a25.tar.gz |
@Add a php.ini option session.use_trans_sid to enable/disable trans-sid. (Sterling)
Diffstat (limited to 'ext/standard/output.c')
-rw-r--r-- | ext/standard/output.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |