anchor.diff:  <%@ page import="java.util.*" %>
   <%@ page import="java.text.SimpleDateFormat" %>
   <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  -<%@ page import="com.ecyrd.jspwiki.WikiProvider" %>
  +<%@ page import="com.ecyrd.jspwiki.util.HttpUtil" %>
   <%@ page import="com.ecyrd.jspwiki.auth.AuthorizationManager" %>
   <%@ page import="com.ecyrd.jspwiki.auth.UserProfile" %>
   <%@ page import="com.ecyrd.jspwiki.auth.permissions.CommentPermission" %>
   <%@ page errorPage="/Error.jsp" %>
  +<%@ page import="javax.servlet.http.Cookie" %>
   <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
   
   <%! 
  
positive.code:     String ok      = request.getParameter("ok");
      String preview = request.getParameter("preview");
      String cancel  = request.getParameter("cancel");
      String author  = wiki.safeGetParameter( request, "author" );
      String remember = request.getParameter("remember");
  
      WikiContext wikiContext = wiki.createContext( request, 
  
negative.code:         log.debug("Author name ="+author);
          if( author != null && author.length() > 0 )
          {
              String signature = author;
              
              if( link != null )
              {
                  link = HttpUtil.guessValidURI( link );
                  
                  signature = "["+author+"|"+link+"]";
              }
              
              Calendar cal = Calendar.getInstance();
              SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yyyy");
  
              pageText.append("\n\n--"+signature+", "+fmt.format(cal.getTime()));
          }
  
          wiki.saveText( wikiContext, pageText.toString() );
  