File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 5
5
- PCRE:
6
6
. Mangle PCRE regex cache key with JIT option. (mvorisek)
7
7
8
+ - Session:
9
+ . Removed broken url support for transferring session ID. (ilutov)
10
+
8
11
06 Jul 2023, PHP 8.2.8
9
12
10
13
- CLI:
Original file line number Diff line number Diff line change @@ -1489,7 +1489,7 @@ PHPAPI zend_result php_session_start(void) /* {{{ */
1489
1489
{
1490
1490
zval * ppid ;
1491
1491
zval * data ;
1492
- char * p , * value ;
1492
+ char * value ;
1493
1493
size_t lensess ;
1494
1494
1495
1495
switch (PS (session_status )) {
@@ -1558,21 +1558,6 @@ PHPAPI zend_result php_session_start(void) /* {{{ */
1558
1558
ppid2sid (ppid );
1559
1559
}
1560
1560
}
1561
- /* Check the REQUEST_URI symbol for a string of the form
1562
- * '<session-name>=<session-id>' to allow URLs of the form
1563
- * http://yoursite/<session-name>=<session-id>/script.php */
1564
- if (!PS (id ) && zend_is_auto_global (ZSTR_KNOWN (ZEND_STR_AUTOGLOBAL_SERVER )) == SUCCESS &&
1565
- (data = zend_hash_str_find (Z_ARRVAL (PG (http_globals )[TRACK_VARS_SERVER ]), "REQUEST_URI" , sizeof ("REQUEST_URI" ) - 1 )) &&
1566
- Z_TYPE_P (data ) == IS_STRING &&
1567
- (p = strstr (Z_STRVAL_P (data ), PS (session_name ))) &&
1568
- p [lensess ] == '='
1569
- ) {
1570
- char * q ;
1571
- p += lensess + 1 ;
1572
- if ((q = strpbrk (p , "/?\\" ))) {
1573
- PS (id ) = zend_string_init (p , q - p , 0 );
1574
- }
1575
- }
1576
1561
/* Check whether the current request was referred to by
1577
1562
* an external site which invalidates the previously found id. */
1578
1563
if (PS (id ) && PS (extern_referer_chk )[0 ] != '\0' &&
You can’t perform that action at this time.
0 commit comments