anchor.diff:                              <input name="addprofile" type="button" class="button" value="<fmt:message key='add'/>" onclick="validate();"/>
                               <input type="button" class="button"
                                     <%if ("true".equals(fromUserMgt)) {%>
  -                                   onclick="javascript:location.href='index.jsp?username=<%=Encode.forUriComponent(username)%>&fromUserMgt=true'"
  +                                   onclick="javascript:location.href='index.jsp?username='+
  +                                           '<%=Encode.forJavaScript(Encode.forUriComponent(username))%>&fromUserMgt=true'"
                                     <%}else{%>
                                      onclick="javascript:location.href='index.jsp?region=region5&item=userprofiles_menu&ordinal=0'"
                                     <%}%>
  
positive.code:                                 %>
  		                        <td><input class="text-box-big"
  		                                   id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  		                                   name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>" type="text"></td>
                                  <%
                                      } else {
                                  %>
                                  <td><input class="text-box-big"
  		                                   id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  		                                   name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>" type="text" readonly="true"></td>
                                  <%
                                      }
                                  %>
  
negative.code: %>
  
  
  
  <%@ page import="java.util.ResourceBundle" %>
  <fmt:bundle
          basename="org.wso2.carbon.identity.user.profile.ui.i18n.Resources">
  