There two different GET/POST replacements one in $aiki->processVars
function which replace [GET[name]] or [POST[name]] always works
(undocumented in seams)

and the second one in two function $input->post_handler and
$input->get_handler with check this condition (executed in
input->requests in function

if ( !isset($_POST['add_to_form']) and 
      !preg_match("/\<form(.*)GET\[(.*)\](.*)\<\/form\>/Us", $text) ) {
       $get_matchs = preg_match_all('/GET\[(.*)\]/Us', $text, $gets);
} else {
   $get_matchs = 0;
}

So it don't process GET[] /POST[] at all if one of them is inside of
<form> - wierd.

Anybody know the purpose of this check?

** Changed in: aikiframework
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/903723

Title:
  POST[value] cannot exist inside a form

Status in Aiki Framework:
  Confirmed

Bug description:
  I'm seeing a problem in aiki framework 0.8.18.843 where a POST[value]
  or GET[value] variable cannot exist inside of a form tag.

  Putting POST[value] or GET[value] inside a form tag will result in the
  output 'POST[value]' instead of the expected posted value.

  It will also sabotage every other GET[] or POST[] on the page

  For example:

  Let's say we post the values 'foo=bar' and 'alpha=beta'to our page,
  with the following widget:

  
  POST[foo]
  POST[alpha]

      <form>
          POST[foo]
  </form>

  EXPECTED OUTPUT:

  bar
  beta
  bar

  ACTUAL OUTPUT:

  POST[foo]
  POST[alpha]
  POST[foo]

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/903723/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to