$blockExpiryFormOptions = "<option value=\"other\">$mIpbothertime</option>";
foreach (explode(',', $scBlockExpiryOptions) as $option) {
+ list($show, $value) = explode(":", $option);
+ $show = htmlspecialchars($show);
+ $value = htmlspecialchars($value);
$selected = "";
- if ($this->BlockExpiry === $option)
+ if ($this->BlockExpiry === $value)
$selected = ' selected="selected"';
- $blockExpiryFormOptions .= "<option$selected>$option</option>";
+ $blockExpiryFormOptions .= "<option value=\"$value\"$selected>$show</option>";
}
$token = htmlspecialchars( $wgUser->editToken() );
'ipbreason' => 'Reason',
'ipbsubmit' => 'Block this user',
'ipbother' => 'Other time',
-'ipboptions' => '2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite',
+'ipboptions' => '2 hours:2 hours,1 day:1 day,3 days:3 days,1 week:1 week,2 weeks:2 weeks,1 month:1 month,3 months:3 months,6 months:6 months,1 year:1 year,infinite:infinite',
'ipbotheroption' => 'other',
'badipaddress' => 'Invalid IP address',
'blockipsuccesssub' => 'Block succeeded',