[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1678-g28133bf

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Fri Apr 21 14:09:04 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  28133bf00662e5c95e12516e45a2c90366bb3f87 (commit)
      from  c88bf4a4c88cd3ec4ca3e9887d255e80af99a441 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=28133bf00662e5c95e12516e45a2c90366bb3f87

commit 28133bf00662e5c95e12516e45a2c90366bb3f87
Author: Marc-Etienne Vargenau <marc-etienne.vargenau at nokia.com>
Date:   Fri Apr 21 14:08:58 2017 +0200

    Encode square brackets in URL

diff --git a/src/www/include/Layout.class.php b/src/www/include/Layout.class.php
index b5c8489..3c02bbf 100644
--- a/src/www/include/Layout.class.php
+++ b/src/www/include/Layout.class.php
@@ -1209,19 +1209,19 @@ if (isset($params['group']) && $params['group']) {
 		if (!$readonly) {
 			if ($widget->canBeRemove()) {
 				echo html_e('div', array('class' => 'widget_titlebar_close'),
-					util_make_link('/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=widget&name['.$widget->id.'][remove]='.$widget->getInstanceId().'&column_id='.$column_id.'&layout_id='.$layout_id, $this->getPicto('ic/close.png', _('Close'), _('Close'))));
+					util_make_link('/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=widget&name%5B'.$widget->id.'%5D%5Bremove%5D='.$widget->getInstanceId().'&column_id='.$column_id.'&layout_id='.$layout_id, $this->getPicto('ic/close.png', _('Close'), _('Close'))));
 			}
 			if ($widget->canBeMinize()) {
 				if ($is_minimized) {
 					echo html_e('div', array('class' => 'widget_titlebar_maximize'),
-						util_make_link('/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=maximize&name['.$widget->id.']='.$widget->getInstanceId().'&column_id='.$column_id.'&layout_id='.$layout_id, $this->getPicto($this->_getTogglePlusForWidgets(), _('Maximize'), _('Maximize'))));
+						util_make_link('/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=maximize&name%5B'.$widget->id.'%5D='.$widget->getInstanceId().'&column_id='.$column_id.'&layout_id='.$layout_id, $this->getPicto($this->_getTogglePlusForWidgets(), _('Maximize'), _('Maximize'))));
 				} else {
 					echo html_e('div', array('class' => 'widget_titlebar_minimize'),
-						util_make_link('/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=minimize&name['.$widget->id.']='.$widget->getInstanceId().'&column_id='.$column_id.'&layout_id='.$layout_id, $this->getPicto($this->_getToggleMinusForWidgets(), _('Minimize'), _('Minimize'))));
+						util_make_link('/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=minimize&name%5B'.$widget->id.'%5D='.$widget->getInstanceId().'&column_id='.$column_id.'&layout_id='.$layout_id, $this->getPicto($this->_getToggleMinusForWidgets(), _('Minimize'), _('Minimize'))));
 				}
 			}
 			if (strlen($widget->hasPreferences())) {
-				$url = '/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=preferences&name['.$widget->id.']='.$widget->getInstanceId().'&layout_id='.$layout_id;
+				$url = '/widgets/updatelayout.php?owner='.$owner_type.$owner_id.'&action=preferences&name%5B'.$widget->id.'%5D='.$widget->getInstanceId().'&layout_id='.$layout_id;
 				if ($owner_type == WidgetLayoutManager::OWNER_TYPE_TRACKER) {
 					$url .= '&func='.getStringFromRequest('func');
 					if (getIntFromRequest('aid')) {

-----------------------------------------------------------------------

Summary of changes:
 src/www/include/Layout.class.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list