Invalid php.ini settings

Discussion in 'General' started by Stoned, Jun 6, 2014.

  1. Stoned

    Stoned New Member

    Hi.
    When i try to insert on "Custom php.ini settings" a value with ^ , for example
    PHP:
    error_reporting E_ALL E_STRICT
    i get an "Invalid php.ini settings" error.
    The ispconfig version is 3.0.5.4p1
    The old 3.0.5.3 version not had this issue
    I think that the problem is in the fix
    Code:
    Fixed FS#3320 - Improve php.ini parser
    where in the latest regular expression not consider the ^ character....
    There is i problem if i change this regular expression from the actual
    PHP:
    if(preg_match('@^\s*;*\s*[a-zA-Z0-9._]*\s*=\s*[-a-zA-Z0-9~&=_\@/,.#\s]*\s*;*\s*[email protected]'$custom_php_ini_settings_line)) continue;
    to
    PHP:
    if(preg_match('@^\s*;*\s*[a-zA-Z0-9._]*\s*=\s*[-a-zA-Z0-9~&=_\@/,.#\^\s]*\s*;*\s*[email protected]'$custom_php_ini_settings_line)) continue;
    ?
    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The change should be fine.
     

Share This Page