{capture assign='sidebar'}
{assign var=encodedLetter value=$letter|rawurlencode}
<div class="jsOnly">
- <form method="get" action="{if $searchID}{link controller='MembersList' id=$searchID}{/link}{else}{link controller='MembersList'}{/link}{/if}">
+ <form method="post" action="{link controller='UserSearch'}{/link}">
<fieldset>
<legend><label for="searchUsername">{lang}wcf.user.search{/lang}</label></legend>
<dt></dt>
<dd>
<input type="text" id="searchUsername" name="username" class="long" placeholder="{lang}wcf.user.username{/lang}" />
+ {@SECURITY_TOKEN_INPUT_TAG}
</dd>
</dl>
</fieldset>
$ageFrom = intval($value['ageFrom']);
$ageTo = intval($value['ageTo']);
+ if ($ageFrom < 0 || $ageFrom > 120) return false;
+ if ($ageTo < 0 || $ageTo > 120) return false;
if (!$ageFrom || !$ageTo) return false;
$dateFrom = DateUtil::getDateTimeByTimestamp(TIME_NOW)->sub(new \DateInterval('P'.($ageTo + 1).'Y'))->add(new \DateInterval('P1D'));