Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DGS-343/multibyte string utility fix #98

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d8f0ffc
initial opc compatibility
GytisZum Mar 7, 2024
8e16f8c
fixed carrier parameter on ajax call
GytisZum Mar 28, 2024
d824164
whitespace removed
GytisZum Mar 28, 2024
0c61096
DGS-322 getErrLog on null fix
GytisZum Apr 18, 2024
1b5e6ff
Merge pull request #132 from DPDBaltics/main
GytisZum Apr 18, 2024
9664a7d
total paid fix
GytisZum May 3, 2024
02a69ab
opc compatibility improvements
GytisZum Jun 3, 2024
0ef1f07
the checkout module compatibility improvements
GytisZum Jun 3, 2024
3d49649
opc improvements and added some styles
GytisZum Jul 3, 2024
2ccea3e
Adding auto indexes
GytisZum Jul 3, 2024
458675d
Automatic license addition applying
GytisZum Jul 3, 2024
583b64f
styling and layout for checkout
Jul 3, 2024
4a9116d
Automatic license addition applying
justelis22 Jul 3, 2024
a9b70ed
onepagecheckout ps module compatibility fixes
GytisZum Jul 4, 2024
453f0c6
comment edited
GytisZum Jul 4, 2024
f8b3463
fixed onepagecheckout ps dropdown
GytisZum Jul 5, 2024
2355086
Automatic license addition applying
GytisZum Jul 5, 2024
1aab047
changed hardcoded value
GytisZum Jul 5, 2024
a5c4bcc
Merge branch 'opcps-module-fixes' of github.com:Invertus/dpdbaltics17…
GytisZum Jul 5, 2024
4903690
css changes to change input order
Jul 5, 2024
14def08
Merge pull request #136 from Invertus/opc-input-layout
justelis22 Jul 5, 2024
12311d4
Merge pull request #135 from Invertus/opcps-module-fixes
justelis22 Jul 5, 2024
1588837
Merge pull request #134 from Invertus/opc-styling-layout
GytisZum Jul 5, 2024
28a0728
version bump and changelog added
GytisZum Jul 5, 2024
b28eb40
Merge pull request #125 from Invertus/DGS-313/onepagecheckout-compati…
GytisZum Jul 11, 2024
dac1632
Merge pull request #130 from Invertus/DGS-332/error-fix
GytisZum Jul 11, 2024
74847d5
Merge pull request #128 from Invertus/DGS-298/carrier-parameter-fix
GytisZum Jul 11, 2024
fddb1ba
Merge pull request #133 from Invertus/DGS-328/totla-paid-fix
GytisZum Jul 11, 2024
451b359
changelog updated
GytisZum Aug 2, 2024
834d62b
Merge branch 'main' into release-v3.2.20
GytisZum Aug 2, 2024
4de97d5
strlen and substr are not suitable for multibyte strings, which can l…
GytisZum Sep 26, 2024
48f270d
Merge branch 'main' of github.com:DPDBaltics/PrestaShop-1.7 into DGS-…
GytisZum Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Util/StringUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function toLowerCase($string)
}

public static function trimString($message) {
return strlen($message) > self::REMARK_LIMIT ? substr($message,0,self::REMARK_LIMIT)."..." : $message;
return mb_strlen($message) > self::REMARK_LIMIT ? mb_substr($message, 0, self::REMARK_LIMIT) . "..." : $message;
}

public static function removeSpecialCharacters($string) {
Expand Down
Loading