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
98214397
Kaydet (Commit)
98214397
authored
Eyl 17, 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: I304b74270f73b9f94568edf2613e2581459cc4f9
üst
7fff7c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+9
-2
No files found.
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
98214397
...
...
@@ -845,8 +845,15 @@ sal_Bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc,
sal
::
static_int_cast
<
xub_StrLen
>
(
pWordStt
-
pStart
)
)
)
)
return
sal_False
;
// already ok
if
(
INetURLObject
::
CompareProtocolScheme
(
rTxt
.
copy
(
pWordStt
-
pStart
,
pDelim
-
pWordStt
+
1
))
!=
INET_PROT_NOT_VALID
)
return
sal_False
;
// already ok
//See if the text is the start of a protocol string, e.g. have text of
//"http" see if it is the start of "http:" and if so leave it alone
sal_Int32
nIndex
=
pWordStt
-
pStart
;
sal_Int32
nProtocolLen
=
pDelim
-
pWordStt
+
1
;
if
(
nIndex
+
nProtocolLen
<=
rTxt
.
getLength
())
{
if
(
INetURLObject
::
CompareProtocolScheme
(
rTxt
.
copy
(
nIndex
,
nProtocolLen
))
!=
INET_PROT_NOT_VALID
)
return
sal_False
;
// already ok
}
if
(
0x1
==
*
pWordStt
||
0x2
==
*
pWordStt
)
return
sal_False
;
// already ok
...
...
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