diff options
Diffstat (limited to 'core/fpdfdoc/cpdf_action.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_action.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_action.cpp b/core/fpdfdoc/cpdf_action.cpp index 2357580548..dae7a7180e 100644 --- a/core/fpdfdoc/cpdf_action.cpp +++ b/core/fpdfdoc/cpdf_action.cpp @@ -96,7 +96,8 @@ CFX_ByteString CPDF_Action::GetURI(CPDF_Document* pDoc) const { CPDF_Dictionary* pRoot = pDoc->GetRoot(); CPDF_Dictionary* pURI = pRoot->GetDictFor("URI"); if (pURI) { - if (csURI.Find(":", 0) < 1) + FX_STRSIZE ret = csURI.Find(":"); + if (ret == 0 || ret == FX_STRNPOS) csURI = pURI->GetStringFor("Base") + csURI; } return csURI; |