Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9bb1b4c5
Kaydet (Commit)
9bb1b4c5
authored
Eyl 18, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't access string out of bounds
Change-Id: I1cee53bc864efaa4ae3b4462111cad4dc80e82be
üst
8001d9f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+8
-3
No files found.
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
9bb1b4c5
...
@@ -642,11 +642,16 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace(
...
@@ -642,11 +642,16 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace(
while
(
nSttWdPos
&&
!
(
bWasWordDelim
=
IsWordDelim
(
rTxt
[
--
nSttWdPos
])))
while
(
nSttWdPos
&&
!
(
bWasWordDelim
=
IsWordDelim
(
rTxt
[
--
nSttWdPos
])))
;
;
if
(
INetURLObject
::
CompareProtocolScheme
(
rTxt
.
copy
(
nSttWdPos
+
(
bWasWordDelim
?
1
:
0
),
nEndPos
-
nSttWdPos
+
1
))
!=
INET_PROT_NOT_VALID
)
{
//See if the text is the start of a protocol string, e.g. have text of
return
sal_False
;
//"http" see if it is the start of "http:" and if so leave it alone
sal_Int32
nIndex
=
nSttWdPos
+
(
bWasWordDelim
?
1
:
0
);
sal_Int32
nProtocolLen
=
nEndPos
-
nSttWdPos
+
1
;
if
(
nIndex
+
nProtocolLen
<=
rTxt
.
getLength
())
{
if
(
INetURLObject
::
CompareProtocolScheme
(
rTxt
.
copy
(
nIndex
,
nProtocolLen
))
!=
INET_PROT_NOT_VALID
)
return
sal_False
;
}
}
// Check the presence of "://" in the word
// Check the presence of "://" in the word
xub_StrLen
nStrPos
=
rTxt
.
indexOf
(
"://"
,
nSttWdPos
+
1
);
xub_StrLen
nStrPos
=
rTxt
.
indexOf
(
"://"
,
nSttWdPos
+
1
);
if
(
STRING_NOTFOUND
==
nStrPos
&&
nEndPos
>
0
)
if
(
STRING_NOTFOUND
==
nStrPos
&&
nEndPos
>
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment