Package: mantis
Version: 0.19.2-4
Severity: grave
Tags: patch
Justification: renders package unusable
diff -u -r1.24 -r1.25
--- current_user_api.php 11 Dec 2004 20:20:12 -0000 1.24
+++ current_user_api.php 18 Dec 2004 09:38:36 -0000 1.25
@@ -78,7 +78,12 @@
# --------------------
# Return true if the currently user is the anonymous user
function current_user_is_anonymous() {
+ if ( auth_is_user_authenticated() ) {
return current_user_get_field('username' ) == config_get(
'anonymous_account' );
+ }
+ else {
+ return false;
+ }
}
# --------------------
# Trigger an ERROR if the current user account is protected
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages mantis depends on:
ii apache [httpd] 1.3.33-6 versatile, high-performance HTTP s
ii debconf 1.4.50 Debian configuration management sy
ii grep 2.5.1.ds1-4 GNU grep, egrep and fgrep
ii libapache-mod-php4 4:4.3.10-15 server-side, HTML-embedded scripti
ii libphp-adodb 4.52-1 The 'adodb' database abstraction l
ii makepasswd 1.10-2 Generate and encrypt passwords
ii mysql-client 4.0.24-10 mysql database client binaries
ii php4-cgi 4:4.3.10-15 server-side, HTML-embedded scripti
ii php4-cli 4:4.3.10-15 command-line interpreter for the p
ii php4-mysql 4:4.3.10-15 MySQL module for php4
ii wwwconfig-common 0.0.43 Debian web auto configuration
-- debconf information:
mantis/adminpassoword: (password omitted)
mantis/root_password: (password omitted)
mantis/password: (password omitted)
mantis/title: Mantis
* mantis/url: http://localhost/mantis/
mantis/bounce: [EMAIL PROTECTED]
* mantis/db_autoupdate: true
* mantis/ldap: false
mantis/ldap_server: localhost
mantis/version: 17
mantis/from: [EMAIL PROTECTED]
mantis/show_version: true
mantis/root_mysql: root
mantis/signup: true
mantis/admin: [EMAIL PROTECTED]
mantis/ldap_info:
* mantis/username: mantis
mantis/webmaster: [EMAIL PROTECTED]
* mantis/purge_db: true
mantis/dn: dn=
* mantis/mysql_port: 3306
* mantis/webserver: apache
* mantis/app_configure: true
mantis/language: english
* mantis/mysql_server: localhost
* mantis/database: bugtracker
mantis/upgrade:
mantis/all: [EMAIL PROTECTED]
mantis/organisation:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]