diff options
author | zotlabs <mike@macgirvin.com> | 2018-08-26 23:05:56 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-08-26 23:05:56 -0700 |
commit | e4b6a143c7679428ecf7208274fddb5f1b37c70e (patch) | |
tree | 851038d0bcb8193aa553e0c320bfbf9717a3397a /include/text.php | |
parent | 9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e (diff) | |
download | volse-hubzilla-e4b6a143c7679428ecf7208274fddb5f1b37c70e.tar.gz volse-hubzilla-e4b6a143c7679428ecf7208274fddb5f1b37c70e.tar.bz2 volse-hubzilla-e4b6a143c7679428ecf7208274fddb5f1b37c70e.zip |
Revert "Change main router request variable from 'q' to 'req'. This is necessary to implement search in the twitter api addon, because twitter requires use of the variable 'q'." Reverting because this will only work with Apache and break nginx/other installations.
This reverts commit 9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 2d704cff1..8a07dc113 100644 --- a/include/text.php +++ b/include/text.php @@ -2526,7 +2526,7 @@ function extra_query_args() { if(count($_GET)) { foreach($_GET as $k => $v) { // these are request vars we don't want to duplicate - if(! in_array($k, array('req','f','zid','page','PHPSESSID'))) { + if(! in_array($k, array('q','f','zid','page','PHPSESSID'))) { $s .= '&' . $k . '=' . urlencode($v); } } @@ -2534,7 +2534,7 @@ function extra_query_args() { if(count($_POST)) { foreach($_POST as $k => $v) { // these are request vars we don't want to duplicate - if(! in_array($k, array('req','f','zid','page','PHPSESSID'))) { + if(! in_array($k, array('q','f','zid','page','PHPSESSID'))) { $s .= '&' . $k . '=' . urlencode($v); } } |