From 923f51d19e0e23d61c3af957cc20224b583f4c4f Mon Sep 17 00:00:00 2001
From: Imran Hussain <imranh@sucs.org>
Date: Sun, 30 Mar 2014 13:08:38 +0000
Subject: [PATCH] Reimplement hackergotchi deletion fix

---
 components/options.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/options.php b/components/options.php
index b21ebb3..63a958a 100644
--- a/components/options.php
+++ b/components/options.php
@@ -136,7 +136,7 @@ function clearHackergotchi() {
 	global $session;
 	$imagefilepath = hackergotchiPath($session->username);
 
-	if (unlink($imagefilepath)) {
+	if (unlink(realpath($imagefilepath))) {
 		return true;
 	} else { 
 		trigger_error("Unable to remove hackergotchi file", E_USER_ERROR);
-- 
GitLab