/usr/share/jspwiki/NewBlogEntry.jsp is in jspwiki 2.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <%@ page import="org.apache.log4j.*" %>
<%@ page import="com.ecyrd.jspwiki.*" %>
<%@ page import="com.ecyrd.jspwiki.plugin.*" %>
<%@ page errorPage="/Error.jsp" %>
<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%!
Logger log = Logger.getLogger("JSPWiki");
%>
<%
WikiEngine wiki = WikiEngine.getInstance( getServletConfig() );
// Create wiki context; no need to check for authorization since the
// redirect will take care of that
WikiContext wikiContext = wiki.createContext( request, WikiContext.EDIT );
String pagereq = wikiContext.getName();
// Redirect if the request was for a 'special page'
String specialpage = wiki.getSpecialPageReference( pagereq );
if( specialpage != null )
{
// FIXME: Do Something Else
response.sendRedirect( specialpage );
return;
}
WeblogEntryPlugin p = new WeblogEntryPlugin();
String newEntry = p.getNewEntryPage( wiki, pagereq );
// Redirect to a new page for user to edit
response.sendRedirect( wiki.getEditURL(newEntry) );
%>
|