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
GIP RENATER
switch-wayf
Commits
b384674d
Commit
b384674d
authored
Nov 02, 2010
by
haemmer
Browse files
Fixed minor HTML error
Hostname of return/target URL is now shown instead of entityID
parent
1638ee7e
Changes
1
Show whitespace changes
Inline
Side-by-side
templates.php
View file @
b384674d
...
...
@@ -44,10 +44,14 @@ function printWAYF(){
$promptMessage
=
'<strong>'
.
getLocalString
(
'make_selection'
)
.
'</strong>'
;
if
(
isset
(
$_GET
[
'target'
])
&&
preg_match
(
'|:/|'
,
$_GET
[
'target'
])){
$promptMessage
=
sprintf
(
getLocalString
(
'access_target'
),
$_GET
[
'target'
],
$_GET
[
'target'
]);
}
else
if
(
isset
(
$_GET
[
'return'
])){
$promptMessage
=
sprintf
(
getLocalString
(
'access_host'
),
getHostNameFromURI
(
$_GET
[
'return'
]));
}
else
if
(
isset
(
$_GET
[
'entityID'
])){
$promptMessage
=
sprintf
(
getLocalString
(
'access_host'
),
getHostNameFromURI
(
$_GET
[
'entityID'
]));
}
else
if
(
isset
(
$_GET
[
'shire'
])){
$promptMessage
=
sprintf
(
getLocalString
(
'access_host'
),
getHostNameFromURI
(
$_GET
[
'shire'
]));
}
else
{
$promptMessage
=
sprintf
(
getLocalString
(
'access_host'
),
'unknown'
);
}
$actionURL
=
$_SERVER
[
'SCRIPT_NAME'
]
.
'?'
.
htmlentities
(
$_SERVER
[
'QUERY_STRING'
]);
$defaultSelected
=
(
$selectedIDP
==
'-'
)
?
'selected="selected"'
:
''
;
...
...
@@ -825,7 +829,7 @@ SCRIPT;
echo
<<<SCRIPT
writeHTML(form_start);
writeHTML('<input name="request_type" type="hidden" value="embedded"
/
>');
writeHTML('<input name="request_type" type="hidden" value="embedded">');
writeHTML('<select id="user_idp" name="user_idp" style="margin-top: 15px;margin-bottom: 10px; width: 100%;">');
// Get local cookie
...
...
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