Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-6697

$safe_mode variable is always set to TRUE in adm/index.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.1
    • 3.0.0
    • ACP
    • None
    • PHP Environment: 5.2.0-8+etch7
      Database: 5.0.32

      I tried to edit a template and have it saved to the file system, but always the ACP Gui told me, the file is not writeable. I don't have safe mode on and the permissions are set alright.

      I then read through the code and found out that the $safe_mode variable defindes in adm/index.php on line 48 gets always set to TRUE.

      $safe_mode = (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on') ? true : false;

      ini_get('safe_mode') returns the string 'off' (in my case, which will result in the boolean value TRUE for the string is not empty. TRUE || anything is TRUE.. so $safe_mode will always be true, wether safe_mode is actually on or off.

            Kellanved Kellanved [X] (Inactive)
            gelhausen gelhausen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: