Commit 3017ec58 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5668 Removed useless max lengths

parent 754871d5
......@@ -28,13 +28,13 @@
<label for="username">
<img class="center" src="{$personal_img|escape}" alt="{t}Username{/t}" title="{t}Username{/t}"/>&nbsp;
</label>
<input type="text" name="username" id="username" maxlength="40" value="{$username|escape}" title="{t}Username{/t}" />
<input type="text" name="username" id="username" value="{$username|escape}" title="{t}Username{/t}" />
<br />
<br />
<label for="password">
<img class="center" src="{$password_img|escape}" alt="{t}Password{/t}" title="{t}Password{/t}" />&nbsp;
</label>
<input type="password" name="password" id="password" maxlength="40" value="" title="{t}Password{/t}"/>
<input type="password" name="password" id="password" value="" title="{t}Password{/t}"/>
<br />
<a href="recovery.php">{t}I forgot my password{/t}</a>
</div>
......
......@@ -63,7 +63,7 @@
</tr>
<tr>
<td><label for="new_password_repeated">{t}New password repeated{/t}</label></td>
<td><input type="password" name="new_password_repeated" id="new_password_repeated" maxlength="40" value="" title="{t}New password repeated{/t}" /></td>
<td><input type="password" name="new_password_repeated" id="new_password_repeated" value="" title="{t}New password repeated{/t}" /></td>
</tr>
<tr>
<td>{t}Password strength{/t}</td>
......
......@@ -151,11 +151,11 @@ class filter
if (isset($element['size'])) {
$size = $element['size'];
}
$maxlength = 30;
$maxlength = '';
if (isset($element['maxlength'])) {
$maxlength = $element['maxlength'];
}
$result = "<input class='filter_textfield' id='$tag' name='$tag' type='text' size='$size' maxlength='{$maxlength}' value='".$this->elementValues[$tag]."'>";
$result = '<input class="filter_textfield" id="'.$tag.'" name="'.$tag.'" type="text" size="'.$size.'"'.(empty($maxlength) ? '' : ' maxlength="'.$maxlength.'"').' value="'.$this->elementValues[$tag].'"/>';
if (isset($element['autocomplete'])) {
$frequency = "0.5";
$characters = "1";
......
......@@ -874,7 +874,7 @@ function check_sizelimit()
$smarty = get_smarty();
$smarty->assign('warning', sprintf(_('The size limit of %d entries is exceed!'),
session::global_get('size_limit')));
$smarty->assign('limit_message', sprintf(_('Set the new size limit to %s and show me this message if the limit still exceeds'), '<input type="text" name="new_limit" maxlength="10" size="5" value="'.(session::global_get('size_limit') + 100).'">'));
$smarty->assign('limit_message', sprintf(_('Set the new size limit to %s and show me this message if the limit still exceeds'), '<input type="text" name="new_limit" maxlength="10" size="5" value="'.(session::global_get('size_limit') + 100).'"/>'));
return $smarty->fetch(get_template_path('sizelimit.tpl'));
}
......
......@@ -21,7 +21,6 @@
<type>textfield</type>
<tag>NAME</tag>
<size>20</size>
<maxlength>60</maxlength>
<default></default>
<unset></unset>
<set>FILTER</set>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment