Escape input on a few error messages
[lhc/web/wiklou.git] / includes / SpecialUndelete.php
index 3e4e2d9..0252760 100644 (file)
@@ -167,7 +167,7 @@ class PageArchive {
                        $redirect = MagicWord::get( MAG_REDIRECT );
                        $redir = $redirect->matchStart( $text ) ? 1 : 0;
                        
-                       $rand = number_format( mt_rand() / mt_getrandmax(), 12, '.', '' );
+                       $rand = wfRandom();
                        $dbw->insertArray( 'cur', array(
                                'cur_id' => $dbw->nextSequenceValue( 'cur_cur_id_seq' ),
                                'cur_namespace' => $namespace,