bugphpGroupWare - Bugs: bug #23949, header/config passwords containing...


You are not allowed to post comments on this tracker with your current authentication level.

bug #23949: header/config passwords containing quotes badly managed when magic_quotes

Submitter:  Olivier Berger <olberger>
Submitted:  Mon 28 Jul 2008 01:12:48 PM UTC
Item Group: Category:  API - Setup
Severity:  3 - Normal Priority:  5 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  skwashd Open/Closed:  Closed
Component Version:  DEB Operating System:  GNU/Linux - Debian
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Mon 16 Feb 2009 10:37:18 AM UTC, comment #1: 

fix in trunk and will be included in

Dave Hall <skwashd>
Project Administrator
Mon 28 Jul 2008 01:12:48 PM UTC, original submission:  


If I'm not mistaken, whenever one is using PHP5 with magic_quotes (which is the default ?), and header or config password is set to a value where it contains single or double quotes, it's impossible to login in the setup to access the header or config dialogs.

I think that the following code should be changed from :
if($FormPW == stripslashes($GLOBALS['phpgw_info']['server']['header_admin_password']))
to :
if(stripslashes($FormPW) == stripslashes($GLOBALS['phpgw_info']['server']['header_admin_password']))

Hope this helps,

Olivier Berger <olberger>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by skwashd (Posted a comment)
  • -email is unavailable- added by olberger (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-16 skwashd StatusNone Fixed
        Assigned toNone skwashd
        Open/ClosedOpen Closed
        ReproducibilityNone Every Time

    Back to the top

    Powered by Savane 3.9