mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 02:11:20 +00:00
X509: include the query part of the URL
This commit is contained in:
parent
a44b56d4b5
commit
3d05201d40
@ -2203,7 +2203,11 @@ class File_X509
|
|||||||
if (!$fsock) {
|
if (!$fsock) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
fputs($fsock, "GET $parts[path] HTTP/1.0\r\n");
|
$path = $parts['path'];
|
||||||
|
if (isset($parts['query'])) {
|
||||||
|
$path.= '?' . $parts['query'];
|
||||||
|
}
|
||||||
|
fputs($fsock, "GET $path HTTP/1.0\r\n");
|
||||||
fputs($fsock, "Host: $parts[host]\r\n\r\n");
|
fputs($fsock, "Host: $parts[host]\r\n\r\n");
|
||||||
$line = fgets($fsock, 1024);
|
$line = fgets($fsock, 1024);
|
||||||
if (strlen($line) < 3) {
|
if (strlen($line) < 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user