From 2d49ed8505aaee0daeda43ebffbcc4a97f33e503 Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 5 Dec 2005 09:40:02 +0000 Subject: [PATCH] Fix invalid \r\n\r\n in https request introduced in 2005071601. --- enrol/authorize/enrol.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 6211a225d65..d986905a944 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -155,12 +155,11 @@ class enrolment_plugin extends enrolment_base { //send the server request fputs($fp, "POST " . AN_PATH . " HTTP/1.0\r\n" . - "Host: " . AN_HOST . "\r\n" . - $anrefererheader . + "Host: " . AN_HOST . "\r\n" . $anrefererheader . "Content-type: application/x-www-form-urlencoded\r\n" . "Connection: close\r\n" . - "Content-length: " . strlen($poststring) . "\r\n" . - $poststring . "\r\n\r\n" + "Content-length: " . strlen($poststring) . "\r\n\r\n" . + $poststring . "\r\n" ); //Get the response header from the server