respect arg_separator.input from php.ini
This commit is contained in:
@@ -6,7 +6,9 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* libraries/url_generating.lib.php: do not htmlentities on whole string
|
* libraries/url_generating.lib.php:
|
||||||
|
- do not htmlentities on whole string
|
||||||
|
- respect arg_separator.input from php.ini
|
||||||
* libraries/common.lib.php:
|
* libraries/common.lib.php:
|
||||||
- make PMA_sendHeaderLocation() earlier available
|
- make PMA_sendHeaderLocation() earlier available
|
||||||
- add SID only if set
|
- add SID only if set
|
||||||
|
@@ -147,6 +147,24 @@ function PMA_generate_common_url ($db = '', $table = '', $delim = '&')
|
|||||||
$questionmark = '';
|
$questionmark = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use seperators defined by php, but prefer ';'
|
||||||
|
// as recommended by W3C
|
||||||
|
$php_arg_separator_input = ini_get( 'arg_separator.input' );
|
||||||
|
if ( strpos( $php_arg_separator_input, ';' ) !== false ) {
|
||||||
|
$separator = ';';
|
||||||
|
} elseif ( strlen( $php_arg_separator_input ) > 0 ) {
|
||||||
|
$separator = $php_arg_separator_input{0};
|
||||||
|
} else {
|
||||||
|
$separator = '&';
|
||||||
|
}
|
||||||
|
|
||||||
|
// check wether to htmlentity the separator or not
|
||||||
|
if ( $delim === '&' ) {
|
||||||
|
$delim = htmlentities( $separator );
|
||||||
|
} else {
|
||||||
|
$delim = $separator;
|
||||||
|
}
|
||||||
|
|
||||||
if ( $GLOBALS['server'] != $GLOBALS['cfg']['ServerDefault']
|
if ( $GLOBALS['server'] != $GLOBALS['cfg']['ServerDefault']
|
||||||
&& ! empty( $GLOBALS['server'] ) ) {
|
&& ! empty( $GLOBALS['server'] ) ) {
|
||||||
$params['server'] = $GLOBALS['server'];
|
$params['server'] = $GLOBALS['server'];
|
||||||
|
Reference in New Issue
Block a user