Browse Source

Check for compatibility

Signed-off-by: Suki <[email protected]>
Suki 12 years ago
parent
commit
c3e959bc7a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Sources/Display.php

+ 4 - 0
Sources/Display.php

@@ -1328,6 +1328,10 @@ function Download()
 
 	$_REQUEST['attach'] = isset($_REQUEST['attach']) ? (int) $_REQUEST['attach'] : (int) $_REQUEST['id'];
 
+	// Check for compatibility
+	if (isset($_REQUEST['type']) && $_REQUEST['type'] == 'avatar')
+		redirectexit('action=dlavatar;attach=' . $_REQUEST['attach']);
+
 	// This checks only the current board for $board/$topic's permissions.
 	isAllowedTo('view_attachments');