fixed notice and nasty error due to /dev/random exhaustion
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 16 Jul 2004 16:49:41 +0000 (16:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 16 Jul 2004 16:49:41 +0000 (16:49 +0000)
config/index.php

index 233ec0c..c97d78b 100644 (file)
@@ -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')" );