summaryrefslogtreecommitdiff
path: root/ext/standard/output.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2000-09-04 22:21:10 +0000
committerSterling Hughes <sterling@php.net>2000-09-04 22:21:10 +0000
commit9f86ff884fe62c9a5c25e65a30fc6d7aae702a25 (patch)
tree5be3c714efb92a5aed7925a25545566f314fd63b /ext/standard/output.c
parent5dca99232e64336a389c73d19342ab224074bc8b (diff)
downloadphp-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.c6
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;