On 6/2/06, bombe at freenetproject.org <bombe at freenetproject.org> wrote:
> Author: bombe
> Date: 2006-06-02 00:15:45 +0000 (Fri, 02 Jun 2006)
> New Revision: 8974
>
> Modified:
> trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
> Log:
> themed "dangerous content" message
>
> Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java 2006-06-01
> 23:48:23 UTC (rev 8973)
> +++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java 2006-06-02
> 00:15:45 UTC (rev 8974)
> @@ -194,9 +194,9 @@
> }
> } catch (UnsafeContentTypeException e) {
> ctx.getPageMaker().makeHead(buf, "Potentially
> Dangerous Content");
> - buf.append("<h1>");
> - buf.append(e.getHTMLEncodedTitle());
> - buf.append("</h1>\n");
> + buf.append("<div class=\"infobox
> infobox-alert\">");
> + buf.append("<div
> class=\"infobox-header\">").append(e.getHTMLEncodedTitle()).append("</div>");
> + buf.append("<div class=\"infobox-content\">");
> buf.append(e.getExplanation());
> buf.append("<p>Your options are:</p><ul>\n");
> buf.append("<li><a
> href=\"/"+key.toString(false)+"?type=text/plain\">Click here</a> to open the
> file as plain text (this should not be dangerous, but it may be
> garbled).</li>\n");
> @@ -204,7 +204,8 @@
> buf.append("<li><a
> href=\"/"+key.toString(false)+"?forcedownload\">Click here</a> to force your
> browser to download the file to disk.</li>\n");
> buf.append("<li><a
> href=\"/"+key.toString(false)+"?force="+getForceValue(key, now)+"\">Click
> here</a> to open the file as "+HTMLEncoder.encode(typeName)+".</li>\n");
> buf.append("<li><a href=\"/\">Click here</a>
> to go to the FProxy home page.</li>\n");
> - buf.append("</ul>");
> + buf.append("</ul></div>");
> + buf.append("</div>\n");
> ctx.getPageMaker().makeTail(buf);
> writeReply(ctx, 200, "text/html", "OK",
> buf.toString());
> }
>
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
Is it my memory being too fuzzy or didn't we agree on #freenet a few
weeks ago that this shouldn't be themed to make it stand out more so
people might actually read it?