From 3d05201d40bc2b8d6153c317818dd8d174ba96c4 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 17 Aug 2022 00:07:54 -0500 Subject: [PATCH] X509: include the query part of the URL --- phpseclib/File/X509.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 8811f68c..5e6377a1 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2203,7 +2203,11 @@ class File_X509 if (!$fsock) { 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"); $line = fgets($fsock, 1024); if (strlen($line) < 3) {