Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixing CTS failure issue in master branch
  • Loading branch information
ren-zhijun-oracle committed May 11, 2018
1 parent 6f612e6 commit 1b43474
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -288,6 +288,10 @@ public UIComponent createComponent(FacesContext context, Resource componentResou
}

public UIComponent createComponent(FacesContext context, String componentType, String rendererType) {

notNull(CONTEXT, context);
notNull(COMPONENT_TYPE, componentType);

return createComponentApplyAnnotations(context, componentType, rendererType, true);
}

Expand Down
Expand Up @@ -565,7 +565,7 @@ private String getLocalePrefix(FacesContext context) {

localePrefix = context.getExternalContext().getRequestParameterMap().get("loc");

if(localePrefix != null){
if(localePrefix != null && !nameContainsForbiddenSequence(localePrefix)){
return localePrefix;
}

Expand Down

0 comments on commit 1b43474

Please sign in to comment.