Skip to content

Commit d7192e7

Browse files
committed
clear GET parameters before proxy forward
1 parent d836240 commit d7192e7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
2 - unique to that session and IP address - URL no longer valid anywhere when browser session ends
1717
*/
1818

19-
$config['url_mode'] = 0;
19+
$config['url_mode'] = 1;
2020

2121
// plugins to load - plugins will be loaded in this exact order as in array
2222
$config['plugins'] = array(
@@ -36,7 +36,7 @@
3636

3737
// additional curl options to go with each request
3838
$config['curl'] = array(
39-
//CURLOPT_INTERFACE => '123.123.123.13',
39+
// CURLOPT_INTERFACE => '123.123.123.13',
4040
// CURLOPT_CONNECTTIMEOUT => 5
4141
);
4242

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@
115115
// request sent to index.php
116116
$request = Request::createFromGlobals();
117117

118+
// remove all GET parameters such as ?q=
119+
$request->get->clear();
120+
118121
// forward it to some other URL
119122
$response = $proxy->forward($request, $url);
120123

0 commit comments

Comments
 (0)