forked from I2P_Developers/i2p.i2p
Console, i2psnark, susimail: Recognize emacs-w3m as a text-mode browser
As reported at http://zzz.i2p/topics/1630 untested
This commit is contained in:
@ -381,7 +381,7 @@ public class I2PSnarkServlet extends BasicServlet {
|
||||
String ua = req.getHeader("User-Agent");
|
||||
boolean isDegraded = ua != null && (ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
||||
ua.startsWith("ELinks") || ua.startsWith("Links") ||
|
||||
ua.startsWith("Dillo"));
|
||||
ua.startsWith("Dillo") || ua.startsWith("Emacs-w3m"));
|
||||
boolean noThinsp = isDegraded || (ua != null && ua.startsWith("Opera"));
|
||||
|
||||
// pages
|
||||
|
@ -174,7 +174,7 @@ public class CSSHelper extends HelperBase {
|
||||
// text
|
||||
!(ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
||||
ua.startsWith("ELinks") || ua.startsWith("Links") ||
|
||||
ua.startsWith("Dillo") ||
|
||||
ua.startsWith("Dillo") || ua.startsWith("Emacs-w3m") ||
|
||||
// mobile
|
||||
// http://www.zytrax.com/tech/web/mobile_ids.html
|
||||
// Android tablet UAs don't have "Mobile" in them
|
||||
|
@ -1502,7 +1502,7 @@ public class WebMail extends HttpServlet
|
||||
// text
|
||||
(ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
||||
ua.startsWith("ELinks") || ua.startsWith("Links") ||
|
||||
ua.startsWith("Dillo") ||
|
||||
ua.startsWith("Dillo") || ua.startsWith("Emacs-w3m") ||
|
||||
// mobile
|
||||
// http://www.zytrax.com/tech/web/mobile_ids.html
|
||||
// Android tablet UAs don't have "Mobile" in them
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 0;
|
||||
public final static long BUILD = 1;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user