Skip to content

Commit

Permalink
Fix some recently introduced bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Sep 10, 2008
1 parent 32efb0b commit 835ae85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -133,7 +133,7 @@

// check client X-header to verify request origin
if ($OUTPUT->ajax_call) {
if ($RCMAIL->config->get('devel_mode') && !rc_request_header('X-RoundCube-Referer')) {
if (!$RCMAIL->config->get('devel_mode') && !rc_request_header('X-RoundCube-Referer')) {
header('HTTP/1.1 404 Not Found');
die("Invalid Request");
}
Expand Down
7 changes: 4 additions & 3 deletions program/js/app.js
Expand Up @@ -3793,7 +3793,8 @@ function rcube_webmail()
case 'getunread':
case 'list':
if (this.task == 'mail') {
this.msglist_select(this.message_list);
if (this.message_list)
this.msglist_select(this.message_list);
this.enable_command('show', 'expunge', 'select-all', 'select-none', 'sort', (this.env.messagecount > 0));
this.enable_command('purge', this.purge_mailbox_test());
}
Expand All @@ -3809,14 +3810,14 @@ function rcube_webmail()
// handle HTTP request errors
this.http_error = function(request_obj)
{
//alert('Error sending request: '+request_obj.url);
//alert('Error sending request: '+request_obj.url+' => HTTP '+request_obj.xmlhttp.status);

if (request_obj.__lock)
this.set_busy(false);

request_obj.reset();
request_obj.__lock = false;
this.display_message('Unknown Serer Error!', 'error');
this.display_message('Unknown Server Error!', 'error');
};


Expand Down

0 comments on commit 835ae85

Please sign in to comment.