X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Factions%2FInfoAction.php;h=1165a268eff1087b49e81d0847d65a2f5147f609;hp=3d3340600b918c14637ed303d8d1139dfd79de9c;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=095a2a05b2aaccff26d7b871194a4edccd092707 diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 3d3340600b..1165a268ef 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -441,7 +441,8 @@ class InfoAction extends FormlessAction { if ( $title->inNamespace( NS_FILE ) ) { $fileObj = wfFindFile( $title ); if ( $fileObj !== false ) { - $output = $fileObj->getSha1(); + // Convert the base-36 sha1 value obtained from database to base-16 + $output = Wikimedia\base_convert( $fileObj->getSha1(), 36, 16, 40 ); $pageInfo['header-basic'][] = [ $this->msg( 'pageinfo-file-hash' ), $output