From a355aee37a371d45100371090b4273032261b74f Mon Sep 17 00:00:00 2001 From: Imran Hussain <imranh@sucs.org> Date: Sat, 29 Mar 2014 20:15:06 +0000 Subject: [PATCH] fixed deletion of hackergotchis --- components/options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/options.php b/components/options.php index 9feeaac..c999164 100644 --- a/components/options.php +++ b/components/options.php @@ -141,7 +141,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