anchor.diff:          }
           if ( errors.size() == 0 )
           {
  -            response.sendRedirect( wiki.getBaseURL()+"Wiki.jsp" );
  +		   response.sendRedirect( wiki.getBaseURL()+"Wiki.jsp" );
  +		   return;
           }
  -        response.sendRedirect( wiki.getBaseURL()+"UserPreferences.jsp" );
       }
       else if( clear != null )
       {
  
positive.code: <%
      WikiContext wikiContext = wiki.createContext( request, WikiContext.PREFS );
      AuthenticationManager mgr = wiki.getAuthenticationManager();
      UserManager userMgr = wiki.getUserManager();
      boolean containerAuth = mgr.isContainerAuthenticated();
      boolean cookieAssertions = AuthenticationManager.allowsCookieAssertions();
      boolean isAuthenticated = wikiContext.getWikiSession().isAuthenticated();
  
      // User must be authenticated to change the profile
      if( !isAuthenticated )
      {
          log.info("User "+wikiContext.getCurrentUser()+" has no access to set preferences - redirecting to login page.");
          String msg = "You do not seem to have the permissions for this operation. Would you like to login as another user?";
  
negative.code: <%@ page import="com.ecyrd.jspwiki.WikiEngine" %>
  <%@ page import="com.ecyrd.jspwiki.auth.NoSuchPrincipalException" %>
  <%@ page import="com.ecyrd.jspwiki.auth.AuthenticationManager" %>
  <%@ page import="com.ecyrd.jspwiki.auth.AuthorizationManager" %>
  <%@ page import="com.ecyrd.jspwiki.auth.UserManager" %>
  <%@ page import="com.ecyrd.jspwiki.auth.WikiSecurityException" %>
  <%@ page import="com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule" %>
  <%@ page import="com.ecyrd.jspwiki.auth.permissions.WikiPermission" %>
  <%@ page import="com.ecyrd.jspwiki.auth.user.DuplicateUserException" %>
  <%@ page import="com.ecyrd.jspwiki.auth.user.UserProfile" %>
  <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  