From 835ae8516a6a1097911360d45e21681c2606e253 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 10 Sep 2008 11:49:14 -0400
Subject: [PATCH] Fix some recently introduced bugs

---
 index.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/index.php b/index.php
index e620183..adab411 100644
--- a/index.php
+++ b/index.php
@@ -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");
   }

--
Gitblit v1.9.1