| Index: core/src/fpdftext/fpdf_text.cpp
|
| diff --git a/core/src/fpdftext/fpdf_text.cpp b/core/src/fpdftext/fpdf_text.cpp
|
| index e9ad338025763f2b3bcf41c5d0fd4a74eb995f5d..9ecbc21bdac06bea0d72dc3a1584b27cb75e3966 100644
|
| --- a/core/src/fpdftext/fpdf_text.cpp
|
| +++ b/core/src/fpdftext/fpdf_text.cpp
|
| @@ -436,8 +436,10 @@ void NormalizeString(CFX_WideString& str) {
|
| static FX_BOOL IsNumber(CFX_WideString& str) {
|
| for (int i = 0; i < str.GetLength(); i++) {
|
| FX_WCHAR ch = str[i];
|
| - if (!std::isdigit(ch) && ch != '-' && ch != '+' && ch != '.' && ch != ' ')
|
| + if ((ch < '0' || ch > '9') && ch != '-' && ch != '+' && ch != '.' &&
|
| + ch != ' ') {
|
| return FALSE;
|
| + }
|
| }
|
| return TRUE;
|
| }
|
|
|