anchor.diff:  
   <%
       String pagereq = "UserPreferences";
  +    String    skin = wiki.getTemplateDir();
       String headerTitle = "";
   
       NDC.push( wiki.getApplicationName()+":"+pagereq );
       
  -    String userName = wiki.getUserName( request );
  -    if( userName == null ) 
  -    {
  -        userName="";
  -    }
  -
  -    WikiPage wikipage = wiki.getPage( pagereq );
  +    WikiPage wikipage = new WikiPage( pagereq );
   
       WikiContext wikiContext = new WikiContext( wiki, wikipage );
  +    wikiContext.setRequestContext("prefs");
       pageContext.setAttribute( WikiTagBase.ATTR_CONTEXT,
  -                              wikiContext );
  +                              wikiContext,
  +                              PageContext.REQUEST_SCOPE );
   
       String ok = request.getParameter("ok");
       String clear = request.getParameter("clear");
   
       if( ok != null || "save".equals(request.getParameter("action")) )
       {
  -        //
  -        //  Servlet 2.2 API assumes all incoming data is in ISO-8859-1, so when
  -        //  returning UTF-8, you get the right bytes but with the wrong encoding.
  -        //
  -        //  For more information, see:
  -        //    http://www.jguru.com/faq/view.jsp?EID=137049
  -        //
  -        String name;
  -        name = new String( request.getParameter("username").getBytes("ISO-8859-1"), "UTF-8");
  +        String name = wiki.safeGetParameter( request, "username" );
   
           UserProfile profile = new UserProfile();
  -        profile.setName( name );
  +        profile.setName( TranslatorReader.cleanLink(name) );
   
           Cookie prefs = new Cookie( WikiEngine.PREFS_COOKIE_NAME, 
                                      profile.getStringRepresentation() );
  
positive.code: 
          response.addCookie( prefs );
  
          response.sendRedirect( wiki.getBaseURL()+"Wiki.jsp" );
      }
      else if( clear != null )
      {
  
negative.code:         prefs.setMaxAge( 0 );
          response.addCookie( prefs );
  
          response.sendRedirect( wiki.getBaseURL()+"UserPreferences.jsp" );
      }       
  
      response.setContentType("text/html; charset="+wiki.getContentEncoding() );
      String contentPage = "templates/"+skin+"/ViewTemplate.jsp";
  %>
  
  <wiki:Include page="<%=contentPage%>" />
  
  <%
      NDC.pop();
  