Skip to content

Commit

Permalink
fix: remove call to abusive encoding
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 26, 2018
1 parent 0a460dd commit 49a1fb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ public function showForCentral() {
echo '&nbsp;';
echo '<a href="' . $CFG_GLPI['root_doc']
. '/plugins/formcreator/front/formdisplay.php?id=' . $form['id'] . '"
title="' . plugin_formcreator_encode($form['description']) . '">'
title="' . $form['description'] . '">'
. $form['name']
. '</a></td>';
echo '</tr>';
Expand Down Expand Up @@ -2131,7 +2131,7 @@ public function showForCentral() {
echo '&nbsp;';
echo '<a href="' . $CFG_GLPI['root_doc']
. '/plugins/formcreator/front/formdisplay.php?id=' . $form['id'] . '"
title="' . plugin_formcreator_encode($form['description']) . '">'
title="' . $form['description'] . '">'
. $form['name']
. '</a></td>';
echo '</tr>';
Expand Down
4 changes: 2 additions & 2 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ public function updateConditions($input) {
$order = 0;
while (count($input['show_field']) > 0) {
$order++;
$value = plugin_formcreator_encode(array_shift($input['show_value']), false);
$value = array_shift($input['show_value']);
$showField = (int) array_shift($input['show_field']);
$showCondition = plugin_formcreator_decode(array_shift($input['show_condition']));
$showCondition = array_shift($input['show_condition']);
$showLogic = array_shift($input['show_logic']);
$question_condition = new PluginFormcreatorQuestion_Condition();
$question_condition->add([
Expand Down

0 comments on commit 49a1fb6

Please sign in to comment.