From bc18f06f2b413018a3a954b4a966a12ef4134e46 Mon Sep 17 00:00:00 2001
From: Tim Repke <repketim@informatik.hu-berlin.de>
Date: Fri, 26 Sep 2014 00:02:45 +0100
Subject: [PATCH] changed captcha font to be absolute

---
 registration-system/view/captcha.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registration-system/view/captcha.php b/registration-system/view/captcha.php
index b29c598..4c9ac1b 100644
--- a/registration-system/view/captcha.php
+++ b/registration-system/view/captcha.php
@@ -25,7 +25,7 @@ function captchaForCode($code)
 	imagefill($img, 0, 0, $bgcol);
 	for($x = 0; $x < $code_len; $x++){
 			$col = imagecolorallocate($img, rand(80, 255), rand(80, 255), rand(80, 255));
-			imagettftext($img, 40, 0, 20 + (45 * $x), 64, $col, "km.ttf", substr($code, $x, 1));
+			imagettftext($img, 40, 0, 20 + (45 * $x), 64, $col, __DIR__."/km.ttf", substr($code, $x, 1));
 	}
 
 	header('Content-Type: image/png');
-- 
GitLab