mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Merge pull request #4011 from Deltik/fix-4010
Support NGINX $host in Downloads hotlink protection
This commit is contained in:
commit
4ce699b380
@ -9,7 +9,8 @@ class NginxSecureLinkMd5Decorator implements SecureLinkDecorator
|
||||
public static $SUPPORTED_VARIABLES = array(
|
||||
'$secure_link_expires',
|
||||
'$uri',
|
||||
'$remote_addr'
|
||||
'$remote_addr',
|
||||
'$host',
|
||||
);
|
||||
|
||||
static function supported_variables() {
|
||||
@ -37,7 +38,8 @@ class NginxSecureLinkMd5Decorator implements SecureLinkDecorator
|
||||
array(
|
||||
$expiry,
|
||||
$url_parts['path'],
|
||||
$_SERVER['REMOTE_ADDR']
|
||||
$_SERVER['REMOTE_ADDR'],
|
||||
$url_parts['host'],
|
||||
),
|
||||
$prefs['download_security_expression']
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user