Skip to content

Commit

Permalink
fix double quote issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimdoerr committed Mar 17, 2022
1 parent 97487fb commit 8bbe02a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- add english readme @sckerbis
- add readme to backend pages @skerbis
- add changelog to backend navigation @skerbis
- fix double quote issue @dtpop

### Migration to from v6.x.x to v7.x.x

Expand Down
3 changes: 2 additions & 1 deletion lib/MForm/Handler/MFormValueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public static function loadRexVars(): array
$result['link'][$i] = $sql->getValue('link' . $i);
}

$jsonResult = json_decode(htmlspecialchars_decode($result['value'][$i]), true);
// thanks @dtpop
$jsonResult = json_decode(htmlspecialchars_decode($result['value'][$i],ENT_NOQUOTES), true); // wb

if (is_array($jsonResult)) {
$result['value_string'][$i] = $result['value'][$i];
Expand Down

0 comments on commit 8bbe02a

Please sign in to comment.