Post Support For Action Parameter Binding
#1
Posted 18 January 2011 - 07:40 AM
If CInlineAction would use CHttpRequest->getParam($name) instead of $_GET[$name]
in the run() method, it would support Action Parameter Binding in both GET and POST requests.
I would prefer that behavior.
#2
Posted 18 January 2011 - 07:47 AM
#3
Posted 10 February 2011 - 01:12 PM
#4
Posted 11 February 2011 - 11:41 AM
#5
Posted 09 July 2011 - 08:00 PM
-- A. Einstein
Follow me on twitter, @scallioxtx
#6
Posted 03 August 2011 - 02:48 PM
e.g. put this in components/Controller.php
public function getActionParams() { return array_merge($_GET, $_POST); }
to have both GET and POST parameters bind to action parameters.
#7
Posted 04 August 2011 - 06:05 AM
helmut, on 03 August 2011 - 02:48 PM, said:
e.g. put this in components/Controller.php
public function getActionParams() { return array_merge($_GET, $_POST); }
to have both GET and POST parameters bind to action parameters.
Security leaks FTW !
There is a reason register_globals is deprecated; don't simulate it!
-- A. Einstein
Follow me on twitter, @scallioxtx
#8
Posted 04 August 2011 - 08:24 AM
#9
Posted 12 August 2011 - 07:14 AM
samdark, on 04 August 2011 - 08:24 AM, said:
It may not be a very good example, but merging these two arrays makes it very easier to try and brute force stuff, as you could put the username and password in the URL and keep blasting. Creating POST requests is a little harder.
Plus I guess I'm not a fan of not knowing precisely where all my variables are coming from. It feels nasty.
-- A. Einstein
Follow me on twitter, @scallioxtx
#10
Posted 12 August 2011 - 09:49 AM
Creating POST requests isn't harder at all. Ones who're breaking our apps are sometimes very clever guys.
#11
Posted 20 May 2012 - 12:28 PM
#12
Posted 23 May 2012 - 04:49 PM
#13
Posted 28 April 2013 - 03:57 PM

Help












