]> git.mxchange.org Git - mailer.git/blobdiff - view.php
Fix for missing content type
[mailer.git] / view.php
index 3432fb354803a255e0241fb39e0c9c838610b3f9..92d3a58e7b3527db2b7cc0624ccfcbe3823c87d7 100644 (file)
--- a/view.php
+++ b/view.php
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 01/02/2004 *
- * ===============                              Last change: 09/04/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 01/02/2004 *
+ * ===================                          Last change: 09/04/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : view.php                                         *
@@ -60,11 +60,8 @@ if (((isGetRequestElementSet('user')) || (isGetRequestElementSet('reseller'))) &
                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `counter`=`counter`+1 WHERE `id`=%s LIMIT 1",
                        array(bigintval(getRequestElement('banner'))), __FILE__, __LINE__);
 
-               // Extract type (last 3 chars should be okay)
-               $type = substr($url, -3);
-
                // Set header and ...
-               sendHeader('Content-Type: image/' . $type);
+               setContentType('image/' . substr($url, -3, 3));
 
                // Redirect
                redirectToUrl($url, false);