Robert Vogel has uploaded a new change for review.
https://gerrit.wikimedia.org/r/218879
Change subject: BSApiFileBackendStore: Fixed SecureFileStore call
......................................................................
BSApiFileBackendStore: Fixed SecureFileStore call
Had to use html_entities_decode with the output of SecureFileStore,
because otherwise the URLs have not been valid
Change-Id: I363169daf9ceebe4be91336484be67dedf15d572
---
M includes/api/BSApiFileBackendStore.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/79/218879/1
diff --git a/includes/api/BSApiFileBackendStore.php
b/includes/api/BSApiFileBackendStore.php
index 214553f..e1c81f0 100644
--- a/includes/api/BSApiFileBackendStore.php
+++ b/includes/api/BSApiFileBackendStore.php
@@ -66,8 +66,8 @@
$sThumb = $oImg->createThumb( 48, 48 );
$sUrl = $oImg->getUrl();
if( $bUseSecureFileStore ) { //TODO: Remove
- $sThumb = SecureFileStore::secureStuff(
$sThumb, true );
- $sUrl = SecureFileStore::secureStuff( $sUrl,
true );
+ $sThumb = html_entity_decode(
SecureFileStore::secureStuff( $sThumb, true ) );
+ $sUrl = html_entity_decode(
SecureFileStore::secureStuff( $sUrl, true ) );
}
$aReturn[ $oRow->page_id ] = (object) array(
--
To view, visit https://gerrit.wikimedia.org/r/218879
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I363169daf9ceebe4be91336484be67dedf15d572
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits