Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
3ca9c545
Commit
3ca9c545
authored
Feb 19, 2008
by
Nigel McNie
Browse files
I18nise a couple of language strings that were hardcoded as english.
parent
576ca63e
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/api/xmlrpc/lib.php
View file @
3ca9c545
...
...
@@ -900,10 +900,10 @@ class PublicKey {
$this
->
certificate
=
$keystring
;
if
(
$this
->
credentials
==
false
)
{
throw
new
CryptException
(
'This is not a valid SSL Certificate: '
.
$keystring
,
1
);
throw
new
CryptException
(
get_string
(
'errornotvalidsslcertificate'
,
'auth'
)
,
1
);
return
false
;
}
elseif
(
$this
->
credentials
[
'subject'
][
'CN'
]
!=
$this
->
wwwroot
)
{
throw
new
CryptException
(
'This certificate does not match the server it claims to represent: '
.
$this
->
credentials
[
'subject'
][
'CN'
]
.
', '
.
$this
->
wwwroot
,
1
);
throw
new
CryptException
(
get_string
(
'errorcertificateinvalidwwwroot'
,
'auth'
,
$this
->
credentials
[
'subject'
][
'CN'
]
,
$this
->
wwwroot
)
,
1
);
return
false
;
}
else
{
return
$this
->
credentials
;
...
...
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