/**
* newmails_opt.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Displays all options relating to new mail sounds
if ($fname == $media) {
echo 'selected ';
}
- echo 'value="' . $fname . '">' . $entry . "</option>\n";
+ echo 'value="' . htmlspecialchars($fname) . '">' .
+ htmlspecialchars($entry) . "</option>\n";
}
}
$d->close();
'</tr>'.
html_tag( 'tr', "\n" .
html_tag( 'td', _("Current File:"), 'right', '', 'nowrap' ) .
- html_tag( 'td', '<input type="hidden" value="' . $media . '" name="media_default">' . $media . '', 'left' )
+ html_tag( 'td', '<input type="hidden" value="' .
+ htmlspecialchars($media) . '" name="media_default">' .
+ htmlspecialchars($media) . '', 'left' )
) . "\n";
}
echo html_tag( 'tr', "\n" .
) . "\n" .
'</table>'. "\n" .
'</form>'. "\n" .
- '</td></tr></table>'. "\n";
- noframes_bottom();
+ '</td></tr></table>'. "\n" .
+'</body></html>';
-?>
\ No newline at end of file
+?>