Changeset

3162:3797be8f491f

share_v2.php: Fix syntax errors
author Matthew Wild <mwild1@gmail.com>
date Mon, 02 Jul 2018 12:55:43 +0100
parents 3161:887a8100343a
children 3163:31b85864a615
files mod_http_upload_external/share_v2.php
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_upload_external/share_v2.php	Mon Jul 02 12:52:59 2018 +0100
+++ b/mod_http_upload_external/share_v2.php	Mon Jul 02 12:55:43 2018 +0100
@@ -87,7 +87,7 @@
 	}
 
 	$calculated_token = hash_hmac('sha256', "$upload_file_name\0$upload_file_size\0$upload_file_type", $CONFIG_SECRET);
-	if(function_exists('hash_equals') {
+	if(function_exists('hash_equals')) {
 		if(hash_equals($calculated_token, $upload_token) !== TRUE) {
 			header('HTTP/1.0 403 Forbidden');
 			exit;
@@ -129,9 +129,9 @@
 		header('Content-Disposition: attachment');
 		header('Content-Type: '.$mime_type);
 		header('Content-Length: '.filesize($store_file_name));
-		header('Content-Security-Policy: "default-src \'none\'"');
-		header('X-Content-Security-Policy: "default-src \'none\'"');
-		header('X-WebKit-CSP: "default-src 'none'"');
+		header("Content-Security-Policy: \"default-src 'none'\"");
+		header("X-Content-Security-Policy: \"default-src 'none'\"");
+		header("X-WebKit-CSP: \"default-src 'none'\"");
 		if($request_method !== 'HEAD') {
 			readfile($store_file_name);
 		}