Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed getdb.php for php 5.3 when error reporting was enabled

  • Loading branch information...
commit 32d56b92aac405ceede141cec9fbb77e79102398 1 parent 69f9f4b
Spiros Ioannou authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  getdb.php
View
2  getdb.php
@@ -4,7 +4,7 @@
require("init.php");
if (!isset($authstatus) || (!$authstatus)) {echo "<big><b>Not logged in</b></big><br>";exit(0);}
-$content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $HTTP_USER_AGENT) == 'IE') ? 'inline' : 'attachment';
+$content_disp = ( preg_match('/MSIE ([0-9].[0-9]{1,2})/', $HTTP_USER_AGENT) == 'IE') ? 'inline' : 'attachment';
$now = date("Ymd");
header('Content-Type: application/octet-stream');
Please sign in to comment.
Something went wrong with that request. Please try again.