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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnVarCleanFromInput and multidimensional arrays
-
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
-
- Rank: Team Member
- Registered: Jan 05, 2003
- Last visit: May 28, 2010
- Posts: 775
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
-
- Rank: Registered User
- Registered: Dec 20, 2005
- Last visit: Oct 21, 2009
- Posts: 15
Maybe you can post a array-safe version for 0.76x?
CU
rigo
--
Regards
rigo
PetBase :: Haustiermarkt
HorseBase :: Pferdemarkt -
- Rank: Team Member
- Registered: Jan 05, 2003
- Last visit: May 28, 2010
- Posts: 775
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
- Moderated by:
- Support
