[core] RecodingEngine now accepts none as valid option.

This commit is contained in:
Michal Čihař
2010-07-20 11:56:21 +02:00
parent d7192b3a95
commit a4055b4773
5 changed files with 8 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ $Id$
thanks to Piotr Przybylski - crackpl
- bug [password] Generate password only available if JS is enabled
(fixed for Privileges and Change password)
- [core] RecodingEngine now accepts none as valid option.
3.3.6.0 (not yet released)

View File

@@ -1702,6 +1702,7 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
iconv, then recode)</li>
<li>iconv - use iconv or libiconv functions</li>
<li>recode - use recode_string function</li>
<li>none - disable encoding conversion</li>
</ul>
Default is auto.</dd>

View File

@@ -33,14 +33,16 @@ if (isset($cfg['AllowAnywhereRecoding'])
PMA_failRecoding();
}
$PMA_recoding_engine = 'iconv';
} else {
} elseif ($cfg['RecodingEngine'] == 'auto') {
if (@extension_loaded('iconv')) {
$PMA_recoding_engine = 'iconv';
} elseif (@extension_loaded('recode')) {
$PMA_recoding_engine = 'recode';
} else {
PMA_failRecoding();
$PMA_recoding_engine = 'none';
}
} else {
$PMA_recoding_engine = 'none';
}
} // end load recode/iconv extension

View File

@@ -1967,6 +1967,7 @@ $cfg['AllowAnywhereRecoding'] = false;
* recode)
* iconv - use iconv or libiconv functions
* recode - use recode_string function
* none - disable encoding conversion
*
* @global string $cfg['RecodingEngine']
*/

View File

@@ -40,7 +40,7 @@ $cfg_db['Servers'] = array(1 => array(
'AllowDeny' => array(
'order' => array('', 'deny,allow', 'allow,deny', 'explicit')),
'only_db' => 'array'));
$cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode');
$cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode', 'none');
$cfg_db['OBGzip'] = array('auto', true, false);
$cfg_db['ShowTooltipAliasTB'] = array('nested', true, false);
$cfg_db['DisplayDatabasesList'] = array('auto', true, false);