From f06b0b7971c67a5c0dc956f0cc2a432fe67713f4 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 1 Sep 2005 16:06:02 +0000 Subject: meta headers should prevent file to be locally cached; rewritten js for nicer remote detection --- HTML/script.js | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'HTML/script.js') diff --git a/HTML/script.js b/HTML/script.js index 24ed239..27c4730 100644 --- a/HTML/script.js +++ b/HTML/script.js @@ -7,21 +7,21 @@ var remoteweb = 'http://start.mandriva.com/'; String.prototype.rtrim = function() { return this.replace(/\s*$/, ""); }; String.prototype.ltrim = function() { return this.replace(/^\s*/, ""); }; String.prototype.trim = function() { return this.rtrim().ltrim(); }; -String.prototype.encodeURI = function() { return escape( this ).replace(/\+/g,"%2B"); }; +String.prototype.encodeURI = function() { return this.replace(/\+/g,"%2B"); }; function actOnline() { var release = ''; try { var t = document.getElementsByTagName('meta'); for( var i=0; i