From 52d330b0f1bbbd19a96b2cecde118608a2d6fb1d Mon Sep 17 00:00:00 2001
From: Thomas Misilo <misilot@users.noreply.github.com>
Date: Tue, 18 Oct 2016 09:07:48 -0400
Subject: [PATCH] Encode the Username

Encode the username, so spaces in the username don't throw an error.
---
 module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
index 1e3f82a19ff..c3a9c4e7266 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
@@ -1603,7 +1603,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements
         //       . "&password=" . $password
         // );
         $idObj = $this->makeRequest(
-            "LookupPatron" . "&id=" . $username
+            "LookupPatron" . "&id=" . urlencode($username)
             . "&id_type=userid"
         );
 
-- 
GitLab