* Stop duplicate insert on re-POST of data
* Correct last internal oid value for PostgreSQL 8.0
* Fix bug with exporting schema for servers < 7.3
+* Fix dumping on v8 for windows, exclude dumping some objects.
Translations
* Japanese from Tadashi Jokagi
/**
* Class to hold various commonly used functions
*
- * $Id: Misc.php,v 1.98 2005/01/23 12:42:35 soranzo Exp $
+ * $Id: Misc.php,v 1.99 2005/04/11 15:15:44 chriskl Exp $
*/
class Misc {
* @return The escaped string
*/
function escapeShellArg($str) {
- global $data;
+ global $data, $lang;
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
- $data->fieldClean($str);
- return '"' . $str . '"';
+ // Due to annoying PHP bugs, shell arguments cannot be escaped
+ // (command simply fails), so we cannot allow complex objects
+ // to be dumped.
+ if (ereg('^[_.[:alnum:]]+$', $str))
+ return $str;
+ else {
+ echo $lang['strcannotdumponwindows'];
+ exit;
+ }
}
else
return escapeshellarg($str);
* English language file for phpPgAdmin. Use this as a basis
* for new translations.
*
- * $Id: english.php,v 1.170 2005/03/13 23:15:17 mr-russ Exp $
+ * $Id: english.php,v 1.171 2005/04/11 15:15:45 chriskl Exp $
*/
// Language and character set
$lang['strnouploads'] = 'File uploads are disabled.';
$lang['strimporterror'] = 'Import error.';
$lang['strimporterrorline'] = 'Import error on line %s.';
+ $lang['strcannotdumponwindows'] = 'Dumping of complex database names on Windows is not supported. Please see the FAQ.';
// Tables
$lang['strtable'] = 'Table';
* English language file for phpPgAdmin. Use this as a basis
* for new translations.
*
- * $Id: english.php,v 1.122 2005/01/04 23:49:21 soranzo Exp $
+ * $Id: english.php,v 1.123 2005/04/11 15:15:47 chriskl Exp $
*/
// Language and character set
$lang['strnouploads'] = 'File uploads are disabled.';
$lang['strimporterror'] = 'Import error.';
$lang['strimporterrorline'] = 'Import error on line %s.';
+ $lang['strcannotdumponwindows'] = 'Dumping of complex database, schema or table names on Windows is not supported. Please see the FAQ.';
// Tables
$lang['strtable'] = 'Table';