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:
zzz
2014-05-28 21:25:35 +00:00
parent c07bfe34ab
commit af5c0bd8a7
4 changed files with 4 additions and 4 deletions

View File

@ -381,7 +381,7 @@ public class I2PSnarkServlet extends BasicServlet {
String ua = req.getHeader("User-Agent"); String ua = req.getHeader("User-Agent");
boolean isDegraded = ua != null && (ua.startsWith("Lynx") || ua.startsWith("w3m") || boolean isDegraded = ua != null && (ua.startsWith("Lynx") || ua.startsWith("w3m") ||
ua.startsWith("ELinks") || ua.startsWith("Links") || ua.startsWith("ELinks") || ua.startsWith("Links") ||
ua.startsWith("Dillo")); ua.startsWith("Dillo") || ua.startsWith("Emacs-w3m"));
boolean noThinsp = isDegraded || (ua != null && ua.startsWith("Opera")); boolean noThinsp = isDegraded || (ua != null && ua.startsWith("Opera"));
// pages // pages

View File

@ -174,7 +174,7 @@ public class CSSHelper extends HelperBase {
// text // text
!(ua.startsWith("Lynx") || ua.startsWith("w3m") || !(ua.startsWith("Lynx") || ua.startsWith("w3m") ||
ua.startsWith("ELinks") || ua.startsWith("Links") || ua.startsWith("ELinks") || ua.startsWith("Links") ||
ua.startsWith("Dillo") || ua.startsWith("Dillo") || ua.startsWith("Emacs-w3m") ||
// mobile // mobile
// http://www.zytrax.com/tech/web/mobile_ids.html // http://www.zytrax.com/tech/web/mobile_ids.html
// Android tablet UAs don't have "Mobile" in them // Android tablet UAs don't have "Mobile" in them

View File

@ -1502,7 +1502,7 @@ public class WebMail extends HttpServlet
// text // text
(ua.startsWith("Lynx") || ua.startsWith("w3m") || (ua.startsWith("Lynx") || ua.startsWith("w3m") ||
ua.startsWith("ELinks") || ua.startsWith("Links") || ua.startsWith("ELinks") || ua.startsWith("Links") ||
ua.startsWith("Dillo") || ua.startsWith("Dillo") || ua.startsWith("Emacs-w3m") ||
// mobile // mobile
// http://www.zytrax.com/tech/web/mobile_ids.html // http://www.zytrax.com/tech/web/mobile_ids.html
// Android tablet UAs don't have "Mobile" in them // Android tablet UAs don't have "Mobile" in them

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 0; public final static long BUILD = 1;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";