[pkg-horde] [SCM] Debian Horde Packages repository: horde3 package branch, debian-sid, updated. debian/3.3.6+debian0-2-9-gf555437

Gregory Colpart reg at debian.org
Sun Oct 31 11:24:55 UTC 2010


The following commit has been merged in the debian-sid branch:
commit f555437bf742038b509dbfb76875766a29371853
Author: Gregory Colpart <reg at debian.org>
Date:   Sun Oct 31 02:00:47 2010 +0200

    Fix last patch

diff --git a/lib/Horde/Prefs/UI.php b/lib/Horde/Prefs/UI.php
index c031732..be6cd26 100644
--- a/lib/Horde/Prefs/UI.php
+++ b/lib/Horde/Prefs/UI.php
@@ -67,7 +67,11 @@ class Prefs_UI {
         /* Run through the action handlers */
         if (Util::getPost('actionID') == 'update_prefs') {
             if (isset($group) && Prefs_UI::groupIsEditable($group)) {
-                $updated = false;
+                $result = Horde::checkRequestToken('horde.prefs', Util::getFormData('horde_prefs_token'));
+                if (is_a($result, 'PEAR_Error')) {
+                    $notification->push($result, 'horde.error');
+                    return $updated;
+                }
 
                 foreach ($prefGroups[$group]['members'] as $pref) {
                     if (!$prefs->isLocked($pref) ||
diff --git a/services/portal/rpcsum.php b/services/portal/rpcsum.php
index 48c8138..974ab8d 100644
--- a/services/portal/rpcsum.php
+++ b/services/portal/rpcsum.php
@@ -36,6 +36,14 @@ if (is_null($actionID)) {
     }
 }
 
+if ($actionID) {
+    $result = Horde::checkRequestToken('horde.prefs', Util::getFormData('horde_prefs_token'));
+    if (is_a($result, 'PEAR_Error')) {
+        $notification->push($result, 'horde.error');
+        $actionID = null;
+    }
+}
+
 /* Run through the action handlers */
 switch ($actionID) {
 case 'save':
diff --git a/services/portal/syncml.php b/services/portal/syncml.php
index 0261523..48913fc 100644
--- a/services/portal/syncml.php
+++ b/services/portal/syncml.php
@@ -20,6 +20,14 @@ require_once 'SyncML/Backend.php';
 $backend = SyncML_Backend::factory('Horde');
 
 $actionID = Util::getFormData('actionID');
+if ($actionID) {
+    $result = Horde::checkRequestToken('horde.prefs', Util::getFormData('horde_prefs_token'));
+    if (is_a($result, 'PEAR_Error')) {
+        $notification->push($result, 'horde.error');
+        $actionID = null;
+    }
+}
+
 switch ($actionID) {
 case 'deleteanchor':
     $deviceid = Util::getFormData('deviceid');
diff --git a/templates/portal/layout.inc b/templates/portal/layout.inc
index 8d6c115..9a4a61b 100644
--- a/templates/portal/layout.inc
+++ b/templates/portal/layout.inc
@@ -73,7 +73,7 @@
           </tr>
           <tr>
             <td colspan="2">
-              <?php echo $blocks->getBlocksWidget($blockInfo['app'], $blockInfo['block'], ($layout->isRemovable($row, $col) ? true : false), ($layout->isRemovable($row, $col) ? false : true)) ?>
+              <?php echo $blocks->getBlocksWidget($blockInfo['app'], $blockInfo['block'], true) ?>
             </td>
           </tr>
 <?php

-- 
Debian Horde Packages repository: horde3 package



More information about the pkg-horde-hackers mailing list