Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b8f39bcd85f3
Choose a base ref
...
head repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0719f32dd9fe
Choose a head ref
  • 5 commits
  • 12 files changed
  • 1 contributor

Commits on Mar 8, 2013

  1. Manage config page: added filtering

    Porting the following 1.2.x commits
    - f8a81a3
    - 259f95c
    - 3f75f68
    - 9f72490
    - efdd6a7
    - 9dbfcd7
    - beea901
    - 65696fb
    - b6f03b7
    - 8b426cf
    - d76a210
    - c61dc63
    
    Issue #14559, #15415
    dregad committed Mar 8, 2013
    Copy the full SHA
    0c81929 View commit details
  2. Make it possible to edit config options in adm_config_report.php

    Use CONFIG_TYPE_xxx constants instead of magic strings to define the
    type of config value to process.
    
    Added code for FLOAT type which was previously handled through COMPLEX.
    
    Improve handling of INT (and FLOAT) by calling constant_replace(),
    allowing user to specify a defined constant instead of a numeric value.
    
    The 'Username', 'Project Name' and 'Configuration Option' fields in the
    'Set Configuration Option' form are preset to the corresponding value
    from the filter or defaulting to ALL_USERS, ALL_PROJECTS and blank
    respectively if the filter is not defined or set to '[any]'. This allows
    easier definition of related config, e.g. for a given project or user.
    
    Port of 1.2.x commits
    - 8890b21
    - 8b426cf
    - 5858a65
    
    Fixes #7586, #15416
    dregad committed Mar 8, 2013
    Copy the full SHA
    57f5740 View commit details
  3. Fix performance issue on adm_config_report.php

    In systems with large numbers of config items in mantis_config_table, the
    Configuration Report page can take a very long time to load.
    
    This behavior is due to each of the 'Delete' buttons being printed with
    its own form, each one having a security token. The performance
    bottleneck is actually the serialize/unserialize calls executed while
    storing/retrieving the token from the PHP session.
    
    To avoid this problem, the print_button() and form_security_field()
    functions have been modified to accept a security token as an optional
    parameter. This allows the calling page to generate a single token,
    which is shared by all buttons.
    
    Furthermore, print_button() also allows the security token parameter to
    be 'OFF', which prevents the function from displaying a security field.
    This is useful for buttons not resulting in modifications (i.e. not
    requiring CSRF protection).
    
    Fixes #13680
    dregad committed Mar 8, 2013
    Copy the full SHA
    5c3ac41 View commit details
  4. Support for multi-dimentional arrays in admin_config_set.php

    This commit adds support for multi-dimentional arrays, as well as
    correct handling of commas and '=>' within strings.
    
    This is based on work by jspezeski; the original code was modified to
    align with MantisBT coding guidelines, simplification of the recursive
    function and fixing a couple of errors in regex.
    
    Fixes #13298
    dregad committed Mar 8, 2013
    Copy the full SHA
    8b98640 View commit details
  5. admin_config_set: Revised process_complex_value() function

    The new code features an improved regex, which deals more efficiently
    with the parsing of multi-dimensional and associative arrays.
    
    Regex are defined as static variables for better performance with
    repeated and recursive calls
    
    Known issue: an invalid definition like 'array(array(1,2)=>array(3,4))'
    is not properly parsed.
    
    Fixes #13298
    dregad committed Mar 8, 2013
    Copy the full SHA
    0719f32 View commit details
Showing with 625 additions and 151 deletions.
  1. +335 −59 adm_config_report.php
  2. +155 −43 adm_config_set.php
  3. +27 −12 config_defaults_inc.php
  4. +1 −0 core/constant_inc.php
  5. +11 −5 core/form_api.php
  6. +2 −1 core/helper_api.php
  7. +3 −0 core/obsolete.php
  8. +21 −7 core/print_api.php
  9. +10 −1 css/default.css
  10. +57 −21 docbook/Admin_Guide/en-US/Configuration.xml
  11. +2 −1 lang/strings_english.txt
  12. +1 −1 manage_user_page.php
Loading