Possible bug? Or just situational weirdness...

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 6, 2009   (RSS)

Re: [InHouse] Possible bug? Or just situational weirdness...

By Dave - May 6, 2009

Hi J,

Good find! It's happening because PHP treats input in a special way when it sees square brackets [] in the url. It turns the input into an array which CMSB isn't expending.

Here's a fix (and I'll include this in the next version):
- Open lib/viewer_functions.php
- Backup this file first
- Then search for this: $_REQUEST as
- and add the line in red after every instance you find:

foreach ($_REQUEST as $key => $value) {
if (is_array($value)) { continue; } // skip multi value php fields


Hope that helps! Let me know if that fixes it for you or if you have any other problems with it.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Possible bug? Or just situational weirdness...

By InHouse - May 6, 2009

Got it in one as ever Dave!

That appears to have solved the problem. Found four instances of the $_REQUEST string and appended the new line. Problem gone.

I also appreciate the explanation of the issue. It helps me understand the product that much better.

Many thanks!

J.