Skip to content

Commit 22275a1

Browse files
committed
add 7.1.2.0 sourceGuardian PHP 8
1 parent 0d08692 commit 22275a1

164 files changed

Lines changed: 362 additions & 306 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod_datastore.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod_licencecheck.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod_variant.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_license_app.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3modprofile.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3modprofilelist.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Encoding/d3decoder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ public function decodeJson(?string $encodedValue): mixed
105105
public function decodeUtf8(?string $encodedValue): mixed
106106
{
107107
return unserialize(
108-
utf8_decode(
109-
html_entity_decode($encodedValue ?? '', ENT_QUOTES)
108+
mb_convert_encoding(
109+
html_entity_decode($encodedValue ?? '', ENT_QUOTES),
110+
'ISO-8859-1',
111+
'UTF-8'
110112
)
111113
);
112114
}

Application/Model/Encoding/d3encoder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ public function encodeJson(mixed $decodedValue): string
101101
*/
102102
public function encodeUtf8(mixed $decodedValue): string
103103
{
104-
return utf8_encode(
104+
return mb_convert_encoding(
105105
serialize(
106106
$decodedValue
107-
)
107+
),
108+
'UTF-8',
109+
'ISO-8859-1'
108110
);
109111
}
110112

0 commit comments

Comments
 (0)