File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -1504,7 +1504,7 @@ PHPAPI zend_result php_session_start(void) /* {{{ */
1504
1504
{
1505
1505
zval * ppid ;
1506
1506
zval * data ;
1507
- char * p , * value ;
1507
+ char * value ;
1508
1508
size_t lensess ;
1509
1509
1510
1510
switch (PS (session_status )) {
@@ -1580,21 +1580,6 @@ PHPAPI zend_result php_session_start(void) /* {{{ */
1580
1580
ppid2sid (ppid );
1581
1581
}
1582
1582
}
1583
- /* Check the REQUEST_URI symbol for a string of the form
1584
- * '<session-name>=<session-id>' to allow URLs of the form
1585
- * http://yoursite/<session-name>=<session-id>/script.php */
1586
- if (!PS (id ) && zend_is_auto_global (ZSTR_KNOWN (ZEND_STR_AUTOGLOBAL_SERVER )) == SUCCESS &&
1587
- (data = zend_hash_str_find (Z_ARRVAL (PG (http_globals )[TRACK_VARS_SERVER ]), "REQUEST_URI" , sizeof ("REQUEST_URI" ) - 1 )) &&
1588
- Z_TYPE_P (data ) == IS_STRING &&
1589
- (p = strstr (Z_STRVAL_P (data ), PS (session_name ))) &&
1590
- p [lensess ] == '='
1591
- ) {
1592
- char * q ;
1593
- p += lensess + 1 ;
1594
- if ((q = strpbrk (p , "/?\\" ))) {
1595
- PS (id ) = zend_string_init (p , q - p , 0 );
1596
- }
1597
- }
1598
1583
/* Check whether the current request was referred to by
1599
1584
* an external site which invalidates the previously found id. */
1600
1585
if (PS (id ) && PS (extern_referer_chk )[0 ] != '\0' &&
You can’t perform that action at this time.
0 commit comments