KEYCLOAK-2510
This commit is contained in:
parent
c0d0c1f39a
commit
32d15e2027
4 changed files with 4 additions and 3 deletions
|
@ -113,6 +113,7 @@ public class TransformerUtil {
|
||||||
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
|
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
|
||||||
} catch (TransformerConfigurationException ignored) {
|
} catch (TransformerConfigurationException ignored) {
|
||||||
// some platforms don't support this. For example our testsuite pulls Selenium which requires Xalan 2.7.1
|
// some platforms don't support this. For example our testsuite pulls Selenium which requires Xalan 2.7.1
|
||||||
|
logger.warn("XML External Entity switches are not supported. You may get XML injection vulnerabilities.");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
|
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
|
||||||
|
@ -120,6 +121,7 @@ public class TransformerUtil {
|
||||||
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
|
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
// some platforms don't support this. For example our testsuite pulls Selenium which requires Xalan 2.7.1
|
// some platforms don't support this. For example our testsuite pulls Selenium which requires Xalan 2.7.1
|
||||||
|
logger.warn("XML External Entity switches are not supported. You may get XML injection vulnerabilities.");
|
||||||
}
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -1315,10 +1315,9 @@ module.factory('PasswordPolicy', function() {
|
||||||
if (!policies || policies.length == 0) {
|
if (!policies || policies.length == 0) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
var policyString = "";
|
var policyString = "";
|
||||||
|
|
||||||
for (var i in policies){
|
for (var i = 0; i < policies.length; i++) {
|
||||||
policyString += policies[i].name;
|
policyString += policies[i].name;
|
||||||
if ( policies[i].value ){
|
if ( policies[i].value ){
|
||||||
policyString += '(' + policies[i].value + ')';
|
policyString += '(' + policies[i].value + ')';
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
placeholder="{{:: 'no-value-assigned.placeholder' | translate}}" min="1" required>
|
placeholder="{{:: 'no-value-assigned.placeholder' | translate}}" min="1" required>
|
||||||
</td>
|
</td>
|
||||||
<td class="kc-action-cell">
|
<td class="kc-action-cell">
|
||||||
<button type="button" class="btn btn-default btn-block btn-sm" ng-click="removePolicy($index)">{{:: 'delete' | translate}}</button>
|
<button class="btn btn-default btn-block btn-sm" ng-click="removePolicy($index)">{{:: 'delete' | translate}}</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
0
themes/src/main/resources/theme/keycloak/admin/resources/css/styles.css
Normal file → Executable file
0
themes/src/main/resources/theme/keycloak/admin/resources/css/styles.css
Normal file → Executable file
Loading…
Reference in a new issue