Sec: XSS hole
Conflicts: htdocs/core/tpl/login.tpl.php
This commit is contained in:
parent
0511ba87f4
commit
f0cfbb8b0d
@ -82,7 +82,7 @@ $(document).ready(function () {
|
|||||||
<input type="hidden" name="screenwidth" id="screenwidth" value="" />
|
<input type="hidden" name="screenwidth" id="screenwidth" value="" />
|
||||||
<input type="hidden" name="screenheight" id="screenheight" value="" />
|
<input type="hidden" name="screenheight" id="screenheight" value="" />
|
||||||
|
|
||||||
<table class="login_table" summary="<?php echo $title; ?>" cellpadding="0" cellspacing="0" border="0" align="center">
|
<table class="login_table" summary="<?php echo dol_escape_htmltag($title); ?>" cellpadding="0" cellspacing="0" border="0" align="center">
|
||||||
<tr class="vmenu"><td align="center"><?php echo $title; ?></td></tr>
|
<tr class="vmenu"><td align="center"><?php echo $title; ?></td></tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
@ -96,14 +96,14 @@ $(document).ready(function () {
|
|||||||
<tr>
|
<tr>
|
||||||
<td valign="bottom"> <strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong> </td>
|
<td valign="bottom"> <strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong> </td>
|
||||||
<td valign="bottom" nowrap="nowrap">
|
<td valign="bottom" nowrap="nowrap">
|
||||||
<input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo GETPOST('username')?GETPOST('username'):$login; ?>" tabindex="1" />
|
<input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag(GETPOST('username')?GETPOST('username'):$login); ?>" tabindex="1" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- Password -->
|
<!-- Password -->
|
||||||
<tr><td valign="top" nowrap="nowrap"> <strong><label for="password"><?php echo $langs->trans('Password'); ?></label></strong> </td>
|
<tr><td valign="top" nowrap="nowrap"> <strong><label for="password"><?php echo $langs->trans('Password'); ?></label></strong> </td>
|
||||||
<td valign="top" nowrap="nowrap">
|
<td valign="top" nowrap="nowrap">
|
||||||
<input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="<?php echo $password; ?>" tabindex="2" />
|
<input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@ -89,8 +89,8 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
<div id="parameterBox">
|
<div id="parameterBox">
|
||||||
|
|
||||||
<div id="logBox"><strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong><input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo GETPOST('username')?GETPOST('username'):$login; ?>" tabindex="1" /></div>
|
<div id="logBox"><strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong><input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag(GETPOST('username')?GETPOST('username'):$login); ?>" tabindex="1" /></div>
|
||||||
<div id="passBox"><strong><label for="password"><?php echo $langs->trans('Password'); ?></label></strong><input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="<?php echo $password; ?>" tabindex="2" /></div>
|
<div id="passBox"><strong><label for="password"><?php echo $langs->trans('Password'); ?></label></strong><input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" /></div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (! empty($hookmanager->resArray['options'])) {
|
if (! empty($hookmanager->resArray['options'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user