* Add validate table and val_ip column through the updater.
* Simple rate limiter for edits and page moves; set $wgRateLimits
(somewhat experimental; currently needs memcached)
+* (bug 2234) allow special chars in database passwords during install
+
=== Caveats ===
);
foreach ( $varnames as $var ) {
- global $$var;
- $ins = str_replace( '{$' . $var . '}', $$var, $ins );
- $ins = str_replace( '/*$' . $var . '*/`', '`' . $$var, $ins );
- $ins = str_replace( '/*$' . $var . '*/', $$var, $ins );
+ if( isset( $GLOBALS[$var] ) ) {
+ $val = addslashes( $GLOBALS[$var] );
+ $ins = str_replace( '{$' . $var . '}', $val, $ins );
+ $ins = str_replace( '/*$' . $var . '*/`', '`' . $val, $ins );
+ $ins = str_replace( '/*$' . $var . '*/', $val, $ins );
+ }
}
return $ins;
}