From 22e21c1134785d82cabd144fbde78fced3cfa226 Mon Sep 17 00:00:00 2001 From: nbm Date: Thu, 2 Feb 2006 11:01:11 +0000 Subject: [PATCH] Query string related changes - use addQS and friends. --- lib/session/control.inc | 2 +- lib/templating/kt3template.inc.php | 2 ++ plugins/ktcore/admin/documentFields.php | 8 ++++---- plugins/ktcore/admin/userManagement.php | 2 +- plugins/ktcore/admin/workflows.php | 15 ++++++++------- plugins/ktcore/authentication/authenticationadminpage.inc.php | 4 ++-- plugins/ktstandard/KTDiscussion.php | 2 +- plugins/ktstandard/ldap/ldapauthenticationprovider.inc.php | 4 +++- templates/ktcore/authentication/manage.smarty | 2 +- templates/ktcore/workflow/admin_portlet.smarty | 4 ++-- 10 files changed, 25 insertions(+), 20 deletions(-) diff --git a/lib/session/control.inc b/lib/session/control.inc index 134cdf3..4a0b4db 100644 --- a/lib/session/control.inc +++ b/lib/session/control.inc @@ -139,7 +139,7 @@ function checkSessionAndRedirect($bRedirect, $bDownload = false) { } else { $url = generateControllerUrl("login"); } - $redirect = urlencode($_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"]); + $redirect = urlencode(KTUtil::addQueryStringSelf($_SERVER["QUERY_STRING"])); if ((strlen($redirect) > 1)) { $default->log->debug("checkSession:: redirect url=$redirect"); // this session verification failure represents either the first visit to diff --git a/lib/templating/kt3template.inc.php b/lib/templating/kt3template.inc.php index 36bfd0b..3ce507e 100644 --- a/lib/templating/kt3template.inc.php +++ b/lib/templating/kt3template.inc.php @@ -282,6 +282,8 @@ class KTPage { $sUrl = KTUtil::addQueryString($sUrl, $sQuery); } $aTuple["url"] = $sUrl; + } else if ($aActionTuple["query"]) { + $aTuple['url'] = KTUtil::addQueryStringSelf($aActionTuple["query"]); } else { $aTuple["url"] = false; } diff --git a/plugins/ktcore/admin/documentFields.php b/plugins/ktcore/admin/documentFields.php index 0a5f9c9..482350f 100755 --- a/plugins/ktcore/admin/documentFields.php +++ b/plugins/ktcore/admin/documentFields.php @@ -721,7 +721,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { // since the root is virtual, we need to fake it here. // the inner section is generised. $treeStr .= '