source: trunk/services/templates/login_form.ihtml @ 267

Last change on this file since 267 was 185, checked in by scdev, 18 years ago

Q - added oTxt() around all printed PHP_SELFs to avoid XSS attack. See: http://blog.phpdoc.info/archives/13-XSS-Woes.html

File size: 779 bytes
RevLine 
[185]1<form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>">
[136]2<?php $app->printHiddenSession() ?>
[20]3<table>
[1]4    <tr>
[121]5        <td class="sc-right"><label for="username"><?php echo _("Username"); ?></label></td>
[22]6        <td>
[121]7            <input type="text" class="sc-small" size="20" name="username" value="<?php echo oTxt($frm['username']); ?>" />
[20]8        </td>
[1]9    </tr>
10    <tr>
[121]11        <td class="sc-right"><label for="password"><?php echo _("Password"); ?></label></td>
[22]12        <td>
[121]13            <input type="password" class="sc-small" size="20" name="password" value="<?php echo oTxt($frm['password']); ?>" />
[20]14        </td>
[1]15    </tr>
16    <tr>
[20]17        <td>&nbsp;</td>
[22]18        <td><input type="submit" value="<?php echo _("Login"); ?>" /></td>
[1]19    </tr>
20</table>
21</form>
Note: See TracBrowser for help on using the repository browser.