Indentation.
This commit is contained in:
@@ -2842,18 +2842,19 @@ function PMA_expandUserString($string, $escape = NULL) {
|
|||||||
|
|
||||||
/* Replacement mapping */
|
/* Replacement mapping */
|
||||||
$replace = array(
|
$replace = array(
|
||||||
'@HTTP_HOST@' => $http_host,
|
'@HTTP_HOST@' => $http_host,
|
||||||
'@SERVER@' => $server_name,
|
'@SERVER@' => $server_name,
|
||||||
'__SERVER__' => $server_name,
|
'__SERVER__' => $server_name,
|
||||||
'@VERBOSE@' => $server_verbose,
|
'@VERBOSE@' => $server_verbose,
|
||||||
'@VSERVER@' => $server_verbose_or_name,
|
'@VSERVER@' => $server_verbose_or_name,
|
||||||
'@DATABASE@' => $database,
|
'@DATABASE@' => $database,
|
||||||
'__DB__' => $database,
|
'__DB__' => $database,
|
||||||
'@TABLE@' => $table,
|
'@TABLE@' => $table,
|
||||||
'__TABLE__' => $table,
|
'__TABLE__' => $table,
|
||||||
'@PHPMYADMIN@' => $phpmyadmin_version,
|
'@PHPMYADMIN@' => $phpmyadmin_version,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* Optional escaping */
|
||||||
if (!is_null($escape)) {
|
if (!is_null($escape)) {
|
||||||
foreach($replace as $key => $val) {
|
foreach($replace as $key => $val) {
|
||||||
$replace[$key] = $escape($val);
|
$replace[$key] = $escape($val);
|
||||||
|
@@ -81,12 +81,12 @@ if (isset($plugin_list)) {
|
|||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function PMA_texEscape($string) {
|
function PMA_texEscape($string) {
|
||||||
$escape = array('$', '%', '{', '}', '&', '#', '_', '^');
|
$escape = array('$', '%', '{', '}', '&', '#', '_', '^');
|
||||||
$cnt_escape = count($escape);
|
$cnt_escape = count($escape);
|
||||||
for ($k=0; $k < $cnt_escape; $k++) {
|
for ($k=0; $k < $cnt_escape; $k++) {
|
||||||
$string = str_replace($escape[$k], '\\' . $escape[$k], $string);
|
$string = str_replace($escape[$k], '\\' . $escape[$k], $string);
|
||||||
}
|
}
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user