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
60c8e64e
Kaydet (Commit)
60c8e64e
authored
Şub 25, 2003
tarafından
Duncan Foster
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixes for #i11779#, #i11223#
üst
5b6ecfb9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
ScriptSecurityManager.cxx
scripting/source/storage/ScriptSecurityManager.cxx
+18
-8
No files found.
scripting/source/storage/ScriptSecurityManager.cxx
Dosyayı görüntüle @
60c8e64e
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptSecurityManager.cxx,v $
*
* $Revision: 1.1
1
$
* $Revision: 1.1
2
$
*
* last change: $Author: dfoster $ $Date: 2003-02-
19 16:25:09
$
* last change: $Author: dfoster $ $Date: 2003-02-
25 16:08:37
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -167,11 +167,19 @@ void ScriptSecurityManager::addScriptStorage( rtl::OUString url,
OSL_TRACE
(
"no of elts in path list = %d"
,
(
int
)
m_secureURL
.
getLength
()
);
bool
match
=
false
;
OSL_TRACE
(
"document path: %s"
,
::
rtl
::
OUStringToOString
(
path
,
RTL_TEXTENCODING_ASCII_US
).
pData
->
buffer
);
for
(
int
j
=
m_secureURL
.
getLength
();
j
>
0
;
j
--
)
{
#ifdef __WIN32__
OSL_TRACE
(
"path list element: %s"
,
::
rtl
::
OUStringToOString
(
m_secureURL
[
j
-
1
],
RTL_TEXTENCODING_ASCII_US
).
pData
->
buffer
);
#ifdef WIN32
OSL_TRACE
(
"case insensitive comparison"
);
if
(
path
.
equalsIgnoreAsciiCase
(
m_secureURL
[
j
-
1
]
)
)
#else
OSL_TRACE
(
"case sensitive comparison"
);
if
(
path
.
equals
(
m_secureURL
[
j
-
1
]
)
)
#endif
{
...
...
@@ -180,8 +188,9 @@ void ScriptSecurityManager::addScriptStorage( rtl::OUString url,
{
OUString
dummyStr
;
OSL_TRACE
(
"path match & warning dialog"
);
short
result
=
executeDialog
(
dummyStr
);
if
(
result
&
1
==
1
)
int
result
=
(
int
)
executeDialog
(
dummyStr
);
OSL_TRACE
(
"result = %d"
,
(
int
)
result
);
if
(
(
result
&
1
)
==
1
)
{
newPerm
.
execPermission
=
sal_True
;
}
...
...
@@ -201,12 +210,13 @@ void ScriptSecurityManager::addScriptStorage( rtl::OUString url,
if
(
m_confirmationRequired
==
sal_True
)
{
OSL_TRACE
(
"no path match & confirmation dialog"
);
short
result
=
executeDialog
(
path
);
if
(
result
&
1
==
1
)
int
result
=
(
int
)
executeDialog
(
path
);
OSL_TRACE
(
"result = %d"
,
(
int
)
result
);
if
(
(
result
&
1
)
==
1
)
{
newPerm
.
execPermission
=
sal_True
;
}
if
(
result
&
2
==
2
)
if
(
(
result
&
2
)
==
2
)
{
/* if checkbox clicked then need to add path to registry*/
addToSecurePaths
(
path
);
...
...
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