summaryrefslogtreecommitdiff
path: root/liberty_plugins
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-19 19:01:02 +0100
committerlsces <lester@lsces.co.uk>2026-04-19 19:01:02 +0100
commitd1693e586ed238efc0d579c2d39dac09015bbba8 (patch)
treebb35bdad789ca178ecc249efd70513b1db417e54 /liberty_plugins
parent356549a1b3c8fc9c96647c2a599d18a3a2960ae0 (diff)
downloadprotector-d1693e586ed238efc0d579c2d39dac09015bbba8.tar.gz
protector-d1693e586ed238efc0d579c2d39dac09015bbba8.tar.bz2
protector-d1693e586ed238efc0d579c2d39dac09015bbba8.zip
Use nginx download and protection of content in attachmentsV5-php84
Diffstat (limited to 'liberty_plugins')
-rwxr-xr-xliberty_plugins/mime.flatdefault.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/liberty_plugins/mime.flatdefault.php b/liberty_plugins/mime.flatdefault.php
index b4b3e01..1a416cf 100755
--- a/liberty_plugins/mime.flatdefault.php
+++ b/liberty_plugins/mime.flatdefault.php
@@ -297,7 +297,7 @@ if( !function_exists( '\Bitweaver\Liberty\mime_default_load' )) {
// e.g.: video files are large and the original might be deleted after conversion
if( is_file( STORAGE_PKG_PATH.$storageBranch )) {
$ret['source_file'] = STORAGE_PKG_PATH.$storageBranch;
- $ret['source_url'] = LIBERTY_PKG_URL.'download/file/'.$pFileHash['attachment_id'];
+ $ret['source_url'] = STORAGE_PKG_URL.$storageBranch;
$ret['last_modified'] = filemtime( $ret['source_file'] );
$ret['download_url'] = $gBitSystem->isFeatureActive( "pretty_urls" ) || $gBitSystem->isFeatureActive( "pretty_urls_extended" )
? LIBERTY_PKG_URL."download/file/".$row['attachment_id']