Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
pnVarCleanFromInput and multidimensional arrays
  • Posted: 30.06.2006, 22:26
     
    Lobos
    rank:
    Professional Professional
    registered:
     December 2002
    Status:
    offline
    last visit:
    24.08.08
    Posts:
    1588
    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
  • Posted: 01.07.2006, 14:55
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    03.12.08
    Posts:
    569
    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
  • Posted: 02.07.2006, 13:56
     
    rigo
    rank:
    Freshman Freshman
    registered:
     December 2005
    Status:
    offline
    last visit:
    06.03.08
    Posts:
    19
    Maybe you can post a array-safe version for 0.76x?

    CU
    rigo

    --
    Regards
    rigo
    PetBase :: Haustiermarkt
    HorseBase :: Pferdemarkt
  • Posted: 05.07.2006, 04:20
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    03.12.08
    Posts:
    569
    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

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula