#define STDC_HEADERS 1
/* Most recent revision number in the version control system */
-#define VCS_REVISION "165"
+#define VCS_REVISION "166"
/* Version number of package */
#define VERSION "2.9"
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-VCS_REVISION=165
+VCS_REVISION=166
cat >>confdefs.h <<_ACEOF
dnl This is the one location where the authoritative version number is stored
AC_INIT(shellinabox, 2.9, markus@shellinabox.com)
-VCS_REVISION=165
+VCS_REVISION=166
AC_SUBST(VCS_REVISION)
AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
[Most recent revision number in the version control system])
};
VT100.prototype.about = function() {
- alert("VT100 Terminal Emulator " + "2.9 (revision 165)" +
+ alert("VT100 Terminal Emulator " + "2.9 (revision 166)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};
event.keyCode >= 65 && event.keyCode <= 90;
var alphNumKey =
asciiKey ||
- event.keyCode >= 96 && event.keyCode <= 105;
+ event.keyCode >= 96 && event.keyCode <= 105 ||
+ event.keyCode == 226;
var normalKey =
alphNumKey ||
event.keyCode == 59 || event.keyCode == 61 ||
event.keyCode >= 109 && event.keyCode <= 111 ||
event.keyCode >= 186 && event.keyCode <= 192 ||
event.keyCode >= 219 && event.keyCode <= 222 ||
- event.keyCode == 226 || event.keyCode == 252;
+ event.keyCode == 252;
try {
if (navigator.appName == 'Konqueror') {
normalKey |= event.keyCode < 128;
check(msg);
check(len >= 0);
+ // Internet Explorer prior to version 7 seems to have difficulties with
+ // compressed data. It also has difficulties with SSL connections that
+ // are being proxied.
+ int ieBug = 0;
+ const char *userAgent = getFromHashMap(&http->header, "user-agent");
+ const char *msie = userAgent ? strstr(userAgent, "MSIE ") : NULL;
+ if (msie && msie[5] >= '4' && msie[5] <= '6') {
+ ieBug++;
+ }
+
int compress = 0;
char *contentLength = NULL;
if (!http->totalWritten) {
#ifdef HAVE_ZLIB
// Compress replies that might exceed the size of a single IP packet
- compress = !isHead &&
+ compress = !ieBug && !isHead &&
!http->isPartialReply &&
len > 1400 &&
httpAcceptsEncoding(http, "deflate");
http->msgLength = len;
}
- // Internet Explorer prior to version 7 has a bug when sending
- // XMLHttpRequests over HTTPS that go through a proxy. It won't see the
- // reply until we close the connection.
- int ieBug = 0;
- if (http->sslHndl) {
- const char *userAgent = getFromHashMap(&http->header, "user-agent");
- const char *msie = userAgent ? strstr(userAgent, "MSIE ") : NULL;
- if (msie && msie[5] >= '4' && msie[5] <= '6') {
- ieBug++;
- }
- }
-
// The caller can suspend the connection, so that it can send an
// asynchronous reply. Once the reply has been sent, the connection
// gets reactivated. Normally, this means it would go back to listening
}
}
- if (ieBug) {
+ if (http->sslHndl && ieBug) {
httpCloseRead(http);
}
}
};
ShellInABox.prototype.about = function() {
- alert("Shell In A Box version " + "2.9 (revision 165)" +
+ alert("Shell In A Box version " + "2.9 (revision 166)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com" +
(typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
};
VT100.prototype.about = function() {
- alert("VT100 Terminal Emulator " + "2.9 (revision 165)" +
+ alert("VT100 Terminal Emulator " + "2.9 (revision 166)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};
event.keyCode >= 65 && event.keyCode <= 90;
var alphNumKey =
asciiKey ||
- event.keyCode >= 96 && event.keyCode <= 105;
+ event.keyCode >= 96 && event.keyCode <= 105 ||
+ event.keyCode == 226;
var normalKey =
alphNumKey ||
event.keyCode == 59 || event.keyCode == 61 ||
event.keyCode >= 109 && event.keyCode <= 111 ||
event.keyCode >= 186 && event.keyCode <= 192 ||
event.keyCode >= 219 && event.keyCode <= 222 ||
- event.keyCode == 226 || event.keyCode == 252;
+ event.keyCode == 252;
try {
if (navigator.appName == 'Konqueror') {
normalKey |= event.keyCode < 128;
event.keyCode >= 65 && event.keyCode <= 90;
var alphNumKey =
asciiKey ||
- event.keyCode >= 96 && event.keyCode <= 105;
+ event.keyCode >= 96 && event.keyCode <= 105 ||
+ event.keyCode == 226;
var normalKey =
alphNumKey ||
event.keyCode == 59 || event.keyCode == 61 ||
event.keyCode >= 109 && event.keyCode <= 111 ||
event.keyCode >= 186 && event.keyCode <= 192 ||
event.keyCode >= 219 && event.keyCode <= 222 ||
- event.keyCode == 226 || event.keyCode == 252;
+ event.keyCode == 252;
try {
if (navigator.appName == 'Konqueror') {
normalKey |= event.keyCode < 128;