Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23592

max_input_vars broken for PHP 7 in .htaccess file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FreePBX Framework
    • Labels:
      None
    • Sprint:
      Sprint 75
    • ToDo:

      Description

      Currently .htaccess in /var/www/html/admin has an IfModule for php5 as shown below:

      
      <IfModule php5_module>
      	php_value max_input_vars 5000
      </IfModule>
      

      However if you run FreePBX on PHP 7, the max input variables are never set to be more than the default, since the module being loaded is php7 and not php5.

      Below is a diff to add support for PHP 7

      
      diff --git a/amp_conf/htdocs/admin/.htaccess b/amp_conf/htdocs/admin/.htaccess
      index 17ccb5ce4..5f2f0de4e 100644
      --- a/amp_conf/htdocs/admin/.htaccess
      +++ b/amp_conf/htdocs/admin/.htaccess
      @@ -34,6 +34,10 @@ SetEnv HTACCESS on
       	php_value max_input_vars 5000
       </IfModule>
       
      +<IfModule php7_module>
      +	php_value max_input_vars 5000
      +</IfModule>
      +
       RewriteEngine on
       #RewriteCond %{ENV:REDIRECT_STATUS} 200
       #RewriteRule ^ - [L]
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                akarshmr Akarsh MR
                Reporter:
                GameGamer43 Bryan Walters
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.