Index: trunk/extensions/Notificator/Notificator.php |
— | — | @@ -26,8 +26,8 @@ |
27 | 27 | |
28 | 28 | $wgExtensionMessagesFiles['Notificator'] = dirname( __FILE__ ) . '/Notificator.i18n.php'; |
29 | 29 | |
30 | | -global $wgPasswordSender, $ngFromAddress; |
31 | | -if(! $ngFromAddress) $ngFromAddress = $wgPasswordSender; |
| 30 | +// Setting default here, to avoid register_globals vulnerabilites |
| 31 | +$ngFromAddress = $wgPasswordSenderName . '<' . $wgPasswordSender . '>'; |
32 | 32 | |
33 | 33 | function notificator_AddDatabaseTable() { |
34 | 34 | global $wgExtNewTables; |