You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a href="<?phpechoget_site_url().'/wp-login.php?saml_metadata'; ?>" target="blank"><?phpecho__("Go to the metadata of this SP", 'onelogin-saml-sso');?></a><br>
24
-
<a href="<?phpechoget_site_url().'/wp-login.php?saml_validate_config'; ?>" target="blank"><?phpecho__("Once configured, validate here your OneLogin SSO/SAML Settings", 'onelogin-saml-sso');?></a>
23
+
<a href="<?phpechoesc_url( get_site_url().'/wp-login.php?saml_metadata' ); ?>" target="blank"><?phpecho__("Go to the metadata of this SP", 'onelogin-saml-sso');?></a><br>
24
+
<a href="<?phpechoesc_url( get_site_url().'/wp-login.php?saml_validate_config' ); ?>" target="blank"><?phpecho__("Once configured, validate here your OneLogin SSO/SAML Settings", 'onelogin-saml-sso');?></a>
25
25
</div>
26
26
<div style="clear:both"></div>
27
27
<h2><?phpechoesc_html( $title ); ?></h2>
@@ -184,7 +184,7 @@ function onelogin_saml_configuration() {
'<p class="description">'.__("The attribute that contains the role of the user, For example 'memberOf'. If WordPress can't figure what role assign to the user, it will assign the default role defined at the general settings.", 'onelogin-saml-sso').'</p>';
<p class="description">'.__("Sometimes role values are provided in an unique attribute statement (instead multiple attribute statements). If that is the case, activate this and the plugin will try to split those values by ;<br>Use a regular expression pattern in order to extract complex data.", 'onelogin-saml-sso').'</p>';
<p class="description">'.__("Regular expression that extract roles from complex multivalued data (required to active the previous option).<br> E.g. If the SAMLResponse has a role attribute like: CN=admin;CN=superuser;CN=europe-admin; , use the regular expression <code>/CN=([A-Z0-9\s _-]*);/i</code> to retrieve the values. Or use <code>/CN=([^,;]*)/</code>", 'onelogin-saml-sso').'</p>';
316
316
}
317
317
@@ -477,7 +477,7 @@ function plugin_setting_select_onelogin_saml_advanced_nameidformat() {
echo'<br>'.__("The Onelogin SSO/SAML plugin is not correctly configured.", 'onelogin-saml-sso').'<br>';
374
374
echoesc_html($e->getMessage());
375
-
echo'<br>'.__("If you are the administrator", 'onelogin-saml-sso').', <a href="'.get_site_url().'/wp-login.php?normal">'.__("access using your wordpress credentials", 'onelogin-saml-sso').'</a> '.__("and fix the problem", 'onelogin-saml-sso');
375
+
echo'<br>'.__("If you are the administrator", 'onelogin-saml-sso').', <a href="'.esc_url( get_site_url().'/wp-login.php?normal').'">'.__("access using your wordpress credentials", 'onelogin-saml-sso').'</a> '.__("and fix the problem", 'onelogin-saml-sso');
echo'<br>'.__("There is a private key stored at the filesystem. Protect the 'certs' path. Nobody should be allowed to access:", 'onelogin-saml-sso').'<br>'.$privatekey_url.'<br>';
58
+
echo'<br>'.__("There is a private key stored at the filesystem. Protect the 'certs' path. Nobody should be allowed to access:", 'onelogin-saml-sso').'<br>'.esc_html( $privatekey_url ).'<br>';
59
59
}
60
60
61
61
if ($spPrivatekey && !empty($spPrivatekey)) {
@@ -110,7 +110,7 @@
110
110
111
111
if (!empty($lacked_attr_mappings)) {
112
112
echo'<br>'.__("Notice that there are attributes without mapping:", 'onelogin-saml-sso').'<br>';
0 commit comments