Update of /cvsroot/squirrelmail/squirrelmail/src
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv6516/src
Modified Files:
options_identities.php
Log Message:
script could be loaded when $edit_identity is set to false
Index: options_identities.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/options_identities.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -w -r1.44 -r1.45
--- options_identities.php 5 Apr 2006 00:22:11 -0000 1.44
+++ options_identities.php 12 Jun 2006 17:32:06 -0000 1.45
@@ -21,6 +21,13 @@
/* SquirrelMail required files. */
require_once(SM_PATH . 'functions/identity.php');
+/* make sure that page is not available when $edit_identity is false */
+if (!$edit_identity) {
+ error_box(_("Editing identities is disabled."));
+ $oTemplate->display('footer.tpl');
+ die();
+}
+
if (!sqgetGlobalVar('identities', $identities, SQ_SESSION)) {
$identities = get_identities();
}
|