Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f89a83b
)
MDL-28948 - lib - removed the hard coded key for the rc4encryt function.
author
adrian@moodle.com
<abgreeve@gmail.com>
Fri, 2 Dec 2011 08:33:25 +0000
(16:33 +0800)
committer
adrian@moodle.com
<abgreeve@gmail.com>
Fri, 16 Dec 2011 01:17:24 +0000
(09:17 +0800)
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
d6bba11
..
8ec7bc9
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-7213,7
+7213,7
@@
class emoticon_manager {
* @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');
}