From dd9486f42dab50143bd57b062ad1af7ba4a52f82 Mon Sep 17 00:00:00 2001 From: "adrian@moodle.com" Date: Fri, 2 Dec 2011 16:33:25 +0800 Subject: [PATCH] MDL-28948 - lib - removed the hard coded key for the rc4encryt function. --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index d48c902f311..97bfe1fc5f7 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6810,7 +6810,7 @@ class emoticon_manager { * @return string The now encrypted data */ function rc4encrypt($data) { - $password = 'nfgjeingjk'; + $password = get_site_identifier(); return endecrypt($password, $data, ''); } @@ -6823,7 +6823,7 @@ function rc4encrypt($data) { * @return string The now decrypted data */ function rc4decrypt($data) { - $password = 'nfgjeingjk'; + $password = get_site_identifier(); return endecrypt($password, $data, 'de'); }