Skip to content
Browse files

MDL-28948 - lib - removed the hard coded key for the rc4encryt function.

  • Loading branch information...
1 parent 6508da4 commit dd9486f42dab50143bd57b062ad1af7ba4a52f82 @abgreeve abgreeve committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -6810,7 +6810,7 @@ protected function prepare_emoticon_object($text, $imagename, $altidentifier = n
* @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');
}

0 comments on commit dd9486f

Please sign in to comment.
Something went wrong with that request. Please try again.