magic_quotes_gpc = OnでPHPを使ってましたが、magic_quotes_gpc = Offに設定。
修正に伴い、postfixAdminも修正。
参考ページ Wait-and-See
/postfixadmin/functions.inc.php
赤字を追加
// escape_string
// Action: Escape a string
// Call: escape_string (string string)
//
function escape_string ($string)
{
global $CONF;
if (get_magic_quotes_gpc () == 0)
{$link = db_connect ();
if ($CONF['database_type'] == "mysql") $escaped_string = mysql_real_escape_string ($string);
if ($CONF['database_type'] == "mysqli") $escaped_string = mysqli_real_escape_string ($link,$string);
if ($CONF['database_type'] == "pgsql") $escaped_string = pg_escape_string ($string);
}
else
{
$escaped_string = $string;
}
return $escaped_string;
}
Apache再起動
# /etc/init.d/apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) done
postfixAdminでアドレス追加テスト OK!
合わせて display_errors = Off に設定。
PhotoGallery でエラーが出ていたのを取りあえずごまかし。
人気度: 2% [?]