Skip to content

Commit 7c39410

Browse files
Fix MD5 hash calculation
Fix mismatch between search_allpages (local) and core.listPages (XMLRPC) API call hash calculation.
1 parent d07a9ff commit 7c39410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Remote/Response/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function retrieveTitle()
8686
*/
8787
public function calculateHash()
8888
{
89-
$this->hash = md5(io_readFile($this->file));
89+
$this->hash = md5(trim(io_readFile($this->file)));
9090
}
9191

9292
/**

0 commit comments

Comments
 (0)