Skip to content

Commit

Permalink
limit errors server side
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Nov 7, 2010
1 parent bae091a commit 69715e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion genetify/CONFIG.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$DB['host'] = 'localhost';
$DB['user'] = 'gregdingle';
$DB['user'] = 'genetify_user';
$DB['password'] = '';
$DB['database'] = 'genetify';

Expand Down
2 changes: 1 addition & 1 deletion genetify/recorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function main()
die(test());
}

if (@$_REQUEST['error']) {
if (@$_REQUEST['error'] && stristr($_REQUEST['error'], 'genetify')) {
//TODO: is this any better than getting user agent server-side?
die(record_error($_REQUEST['error'], $_REQUEST['line_number'], $_REQUEST['domain'], $_REQUEST['page']));
}
Expand Down

0 comments on commit 69715e5

Please sign in to comment.