|
From: OryNider <ory...@us...> - 2008-03-13 07:21:03
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25086 Modified Files: mx_functions_phpbb.php Log Message: new typo bug with empty _SID Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** mx_functions_phpbb.php 9 Mar 2008 23:38:00 -0000 1.55 --- mx_functions_phpbb.php 13 Mar 2008 07:19:59 -0000 1.56 *************** *** 1178,1185 **** --- 1178,1198 ---- } + /* if ( !empty($_SID) && !preg_match('#sid=#', $url) ) { $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; } + */ + + //Will this make troble if it's correct? + if ( !empty($_SID) && !preg_match('#sid=#', $url) ) + { + $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $_SID; + } + + if ( !empty($SID) && !preg_match('#sid=#', $url) ) + { + $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; + } return $url; |