Fork me on GitHub

pnVarCleanFromInput and multidimensional arrays  Bottom

  • Array
    (
    [listimage] => on
    [numlist] => 12
    [gallery] => on
    [gallerynumitems] => 10
    [types] => Array
    (
    [0] =>
    [1] => 1
    [2] => 2
    )

    )

    This is how the array looks from printing $_REQUEST('var');

    Array
    (
    [listimage] => on
    [numlist] => asd
    [gallery] => on
    [gallerynumitems] => asd
    [types] => Array
    )

    An this is the dump from pnVarCleanFromInput, notice how it cuts the types array?

    Now the strange thing about this is that pnVarCleanFromInput was working ok with this last night and then today it just started to do this... hmmm gremlins? I have noticed that this has happened before when using multidimensional arrays in form data submissions...

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Yep, the 0.76x version of this function is not array-safe.

    We've added array-safe versions of these functions into the DataUtil class in the 0.8 codeline. Maybe that info can help you out ...

    Greetings
    R
  • Maybe you can post a array-safe version for 0.76x?

    CU
    rigo

    --
    Regards
    rigo
    PetBase :: Haustiermarkt
    HorseBase :: Pferdemarkt
  • You should be able to just take the includes/pnobjlib/DataUtil.class.php file from 0.8 and use it with PN 0.76x ...

    Greetings
    R

This list is based on users active over the last 60 minutes.