From: Tim Starling Date: Fri, 16 Jul 2004 16:49:41 +0000 (+0000) Subject: fixed notice and nasty error due to /dev/random exhaustion X-Git-Tag: 1.5.0alpha1~2667 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=f42dfefd4ab5294f6c09d2d7a35cd952d1dedd6d;p=lhc%2Fweb%2Fwiklou.git fixed notice and nasty error due to /dev/random exhaustion --- diff --git a/config/index.php b/config/index.php index 233ec0ccf2..c97d78bede 100644 --- a/config/index.php +++ b/config/index.php @@ -500,8 +500,8 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { $now = wfTimestampNow(); $won = wfInvertTimestamp( $now ); foreach( $logs as $page => $text ) { - $logTitle = wfStrencode( $wgLang->ucfirst( str_replace( " ", "_", wfMsgNoDB( $page ) ) ) ); - $logText = wfStrencode( wfMsgNoDB( $text ) ); + $logTitle = $wgDatabase->strencode( $wgLang->ucfirst( str_replace( " ", "_", wfMsgNoDB( $page ) ) ) ); + $logText = $wgDatabase->strencode( wfMsgNoDB( $text ) ); $wgDatabase->query( "INSERT INTO cur (cur_namespace,cur_title,cur_text," . "cur_restrictions,cur_timestamp,inverse_timestamp,cur_touched) " . "VALUES ($metaNamespace,'$logTitle','$logText','sysop','$now','$won','$now')" );