"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "shellinabox/shell_in_a_box.jspp" between
shellinabox-2.19.tar.gz and shellinabox-2.20.tar.gz

About: shellinabox implements a web server that can export arbitrary command line tools to a web based terminal emulator. This emulator is accessible to any JavaScript and CSS enabled web browser. Fork of the no longer maintained original version on https://shellinabox.com/ respectively https://code.google.com/archive/p/shellinabox/.

shell_in_a_box.jspp  (shellinabox-2.19):shell_in_a_box.jspp  (shellinabox-2.20)
skipping to change at line 408 skipping to change at line 408
// For IE8 // For IE8
if (window.attachEvent) { if (window.attachEvent) {
window.attachEvent('onmessage', function(shellInABox) { window.attachEvent('onmessage', function(shellInABox) {
return function(message) { return function(message) {
shellInABox.messageReceive(message); shellInABox.messageReceive(message);
} }
}(this)); }(this));
} }
} }
// After message mechanisms are in place "ready" message is sent to parent
// window.
parent.postMessage(JSON.stringify({type : 'ready', data : ''}), '*');
}; };
ShellInABox.prototype.messageReceive = function (message) { ShellInABox.prototype.messageReceive = function (message) {
// Check for message origin if needed. // Check for message origin if needed.
if (serverMessagesOrigin !== "*") { if (serverMessagesOrigin !== "*") {
if (serverMessagesOrigin !== message.origin) { if (serverMessagesOrigin !== message.origin) {
return; return;
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS