Skip to content
Browse files

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

  • Loading branch information...
1 parent f89a83b commit 98456628a24bba25d336860d38a45b5a4e3895da @abgreeve abgreeve committed Dec 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -7213,7 +7213,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, '');
}
@@ -7226,7 +7226,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 9845662

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