DavidCramer / DB-Toolkit

WordPress Plugin to create and manage databases and custom content structures.
18 stars 7 forks source link

Appending GET options to redirected URLs #4

Closed gwythaint closed 8 years ago

gwythaint commented 10 years ago

I think this itty bitty change vs. 0.3.3 lets FORM mode interfaces send passback fields to targets of redirects by letting $ReturnValue keep its originally assigned value. Otherwise, http_build_query() will fall over itself operating on unsigned $gets.

diff --git a/libs/functions.php b/libs/functions.php
index 7fbb9ac..373efcf 100644
--- a/libs/functions.php
+++ b/libs/functions.php
@@ -1382,8 +1382,8 @@ function dt_process() {
                     }
                     $ReturnValue = htmlspecialchars_decode(@http_build_query($gets, $returngets));

-                }
                 $Redirect = $Location.$returntoken.$ReturnValue;
+                }
             }
             //echo $Redirect;
             //exit;
DavidCramer commented 8 years ago

This will be a core feature in future.