diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-06-09 21:17:20 +0200 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-06-09 21:17:20 +0200 |
commit | 62765857f84626449d6c53b1a46c462a37e5083a (patch) | |
tree | c2954af0ab4d9fb535b9895c34e1b321d4fde59b /_test | |
parent | a0376fb908efe76fcdeca5132e5aab8b0412c84a (diff) | |
download | rpg-62765857f84626449d6c53b1a46c462a37e5083a.tar.gz rpg-62765857f84626449d6c53b1a46c462a37e5083a.tar.bz2 |
update common_ml test for hash change
Diffstat (limited to '_test')
-rw-r--r-- | _test/tests/inc/common_ml.test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/_test/tests/inc/common_ml.test.php b/_test/tests/inc/common_ml.test.php index 9f3d87598..6f3b71db4 100644 --- a/_test/tests/inc/common_ml.test.php +++ b/_test/tests/inc/common_ml.test.php @@ -105,8 +105,9 @@ class common_ml_test extends DokuWikiTest { foreach($ids as $id) { $tok = media_get_token($id, $w, 0); + $hash = substr(PassHash::hmac('md5', $id, auth_cookiesalt()), 0, 6); - $expect = DOKU_BASE.$this->script.'?hash='.substr(md5(auth_cookiesalt().$id), 0, 6).'&w='.$w.'&tok='.$tok.'&media='.rawurlencode($id); + $expect = DOKU_BASE.$this->script.'?hash='.$hash.'&w='.$w.'&tok='.$tok.'&media='.rawurlencode($id); $this->assertEquals($expect, ml($id, $args)); } } |