Revision 1476
Added by Dietmar over 13 years ago
upgrade-script.php | ||
---|---|---|
351 | 351 |
*/ |
352 | 352 |
echo "<br />Adding mediasettings to settings table<br />"; |
353 | 353 |
$cfg = array( |
354 |
'mediasettings' => '' |
|
354 |
'mediasettings' => '', |
|
355 |
'rename_files_on_upload' => 'ph.*?,cgi,pl,pm,exe,com,bat,pif,cmd,src,asp,aspx' |
|
355 | 356 |
); |
356 | 357 |
foreach($cfg as $key=>$value) { |
357 | 358 |
db_add_key_value($key, $value); |
... | ... | |
362 | 363 |
*/ |
363 | 364 |
echo "<br />Adding fingerprint_with_ip_octets to settings table<br />"; |
364 | 365 |
$cfg = array( |
365 |
'fingerprint_with_ip_octets' => '3' |
|
366 |
'fingerprint_with_ip_octets' => '2', |
|
367 |
'secure_form_module' => '' |
|
366 | 368 |
); |
367 | 369 |
foreach($cfg as $key=>$value) { |
368 | 370 |
db_add_key_value($key, $value); |
Also available in: Unified diff
set of a wildcard ".*?" e.g. ph.*? proof ext like php, php3, php4 etc.
+ add new settings value in install, upgrade-script and core module