Commit dab8e69f210c6f2e68b63fe1e5c6127f4ccc3037

Authored by nbm
1 parent 47676f5b

Allow the qs request variable to be an array.

This allows inputs in forms to be of the form:
qs[foo]=1

And the form action url to be control.php?action=bar, and it will pass
through the right request variables.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3938 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 7 additions and 0 deletions
control.php
... ... @@ -50,6 +50,13 @@ if (checkSessionAndRedirect(false)) {
50 50 }
51 51  
52 52 $queryString = KTUtil::arrayGet($_REQUEST, 'qs', '');
  53 +if (is_array($queryString)) {
  54 + $aStrings = array();
  55 + foreach ($queryString as $k => $v) {
  56 + $aStrings[] = $k . '=' . $v;
  57 + }
  58 + $queryString = join('&', $aStrings);
  59 +}
53 60  
54 61 if (empty($queryString)) {
55 62 // need to strip query string params from action before attempting to retrieve from sitemap
... ...