escape more
This commit is contained in:
@ -81,7 +81,7 @@ class Serendipity_Import_b2evolution extends Serendipity_Import {
|
||||
|
||||
$b2db = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$b2db) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -83,7 +83,7 @@ class Serendipity_Import_bblog extends Serendipity_Import {
|
||||
|
||||
$bblogdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$bblogdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -81,7 +81,7 @@ class Serendipity_Import_bmachine extends Serendipity_Import {
|
||||
|
||||
$txpdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$txpdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -87,7 +87,7 @@ class Serendipity_Import_geeklog extends Serendipity_Import {
|
||||
|
||||
$gdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$gdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -81,7 +81,7 @@ class Serendipity_Import_lifetype extends Serendipity_Import {
|
||||
|
||||
$ltdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$ltdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -84,7 +84,7 @@ class Serendipity_Import_Nucleus extends Serendipity_Import {
|
||||
|
||||
$nucdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$nucdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -81,7 +81,7 @@ class Serendipity_Import_nuke extends Serendipity_Import {
|
||||
|
||||
$nukedb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$nukedb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -83,7 +83,7 @@ class Serendipity_Import_phpbb extends Serendipity_Import {
|
||||
|
||||
$gdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$gdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -69,7 +69,7 @@ class Serendipity_Import_Pivot extends Serendipity_Import {
|
||||
if (!is_dir($this->data['pivot_path']) || !is_readable($this->data['pivot_path'])) {
|
||||
$check_dir = $serendipity['serendipityPath'] . $this->data['pivot_path'];
|
||||
if (!is_dir($check_dir) || !is_readable($check_dir)) {
|
||||
return sprintf(ERROR_NO_DIRECTORY, $this->data['pivot_path']);
|
||||
return sprintf(ERROR_NO_DIRECTORY, htmlspecialchars($this->data['pivot_path']));
|
||||
}
|
||||
$this->data['pivot_path'] = $check_dir;
|
||||
}
|
||||
@ -191,7 +191,7 @@ class Serendipity_Import_Pivot extends Serendipity_Import {
|
||||
}
|
||||
echo '</ul>';
|
||||
} else {
|
||||
return sprintf(ERROR_NO_DIRECTORY, $this->data['pivot_path']);
|
||||
return sprintf(ERROR_NO_DIRECTORY, htmlspecialchars($this->data['pivot_path']));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -84,7 +84,7 @@ class Serendipity_Import_pMachine extends Serendipity_Import {
|
||||
|
||||
$pmdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$pmdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -448,7 +448,7 @@ class Serendipity_Import_Serendipity extends Serendipity_Import {
|
||||
|
||||
$s9ydb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$s9ydb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -87,7 +87,7 @@ class Serendipity_Import_smf extends Serendipity_Import {
|
||||
|
||||
$gdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$gdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -88,7 +88,7 @@ class Serendipity_Import_sunlog extends Serendipity_Import {
|
||||
|
||||
$sunlogdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$sunlogdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -87,7 +87,7 @@ class Serendipity_Import_textpattern extends Serendipity_Import {
|
||||
|
||||
$txpdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$txpdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
@ -87,7 +87,7 @@ class Serendipity_Import_WordPress_PG extends Serendipity_Import {
|
||||
|
||||
$wpdb = pg_connect("$this->data['host'], $this->data['port'], $this->data['user'], $this->data['pass'], $this->data['name']");
|
||||
if ( !$wpdb ) {
|
||||
return sprintf(PGSQL_COULDNT_CONNECT, $this->data['pass']);
|
||||
return sprintf(PGSQL_COULDNT_CONNECT, htmlspecialchars($this->data['pass']));
|
||||
}
|
||||
|
||||
/* Users */
|
||||
|
@ -94,7 +94,7 @@ class Serendipity_Import_WordPress extends Serendipity_Import {
|
||||
|
||||
$wpdb = @mysql_connect($this->data['host'], $this->data['user'], $this->data['pass']);
|
||||
if (!$wpdb) {
|
||||
return sprintf(COULDNT_CONNECT, $this->data['host']);
|
||||
return sprintf(COULDNT_CONNECT, htmlspecialchars($this->data['host']));
|
||||
}
|
||||
|
||||
if (!@mysql_select_db($this->data['name'])) {
|
||||
|
Reference in New Issue
Block a user