hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r1495245 - in /hadoop/common/site/main/publish/docs: r0.23.6/api/ r0.23.6/hadoop-hdfs-httpfs/apidocs/ r0.23.7/api/ r0.23.7/hadoop-hdfs-httpfs/apidocs/ r0.23.8/api/ r0.23.8/hadoop-hdfs-httpfs/apidocs/ r1.0.4/api/ r1.1.1/api/ r1.1.2/api/ r1.2...
Date Fri, 21 Jun 2013 00:01:41 GMT
Author: cdouglas
Date: Fri Jun 21 00:01:41 2013
New Revision: 1495245

URL: http://svn.apache.org/r1495245
Log:
Patch CVE-2013-1571

Modified:
    hadoop/common/site/main/publish/docs/r0.23.6/api/index.html
    hadoop/common/site/main/publish/docs/r0.23.6/hadoop-hdfs-httpfs/apidocs/index.html
    hadoop/common/site/main/publish/docs/r0.23.7/api/index.html
    hadoop/common/site/main/publish/docs/r0.23.7/hadoop-hdfs-httpfs/apidocs/index.html
    hadoop/common/site/main/publish/docs/r0.23.8/api/index.html
    hadoop/common/site/main/publish/docs/r0.23.8/hadoop-hdfs-httpfs/apidocs/index.html
    hadoop/common/site/main/publish/docs/r1.0.4/api/index.html
    hadoop/common/site/main/publish/docs/r1.1.1/api/index.html
    hadoop/common/site/main/publish/docs/r1.1.2/api/index.html
    hadoop/common/site/main/publish/docs/r1.2.0/api/index.html
    hadoop/common/site/main/publish/docs/r2.0.2-alpha/api/index.html
    hadoop/common/site/main/publish/docs/r2.0.2-alpha/hadoop-hdfs-httpfs/apidocs/index.html
    hadoop/common/site/main/publish/docs/r2.0.3-alpha/api/index.html
    hadoop/common/site/main/publish/docs/r2.0.3-alpha/hadoop-hdfs-httpfs/apidocs/index.html
    hadoop/common/site/main/publish/docs/r2.0.4-alpha/api/index.html
    hadoop/common/site/main/publish/docs/r2.0.4-alpha/hadoop-hdfs-httpfs/apidocs/index.html
    hadoop/common/site/main/publish/docs/r2.0.5-alpha/api/index.html
    hadoop/common/site/main/publish/docs/r2.0.5-alpha/hadoop-hdfs-httpfs/apidocs/index.html

Modified: hadoop/common/site/main/publish/docs/r0.23.6/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r0.23.6/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r0.23.6/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r0.23.6/api/index.html Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop Main 0.23.6 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r0.23.6/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r0.23.6/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r0.23.6/hadoop-hdfs-httpfs/apidocs/index.html (original)
+++ hadoop/common/site/main/publish/docs/r0.23.6/hadoop-hdfs-httpfs/apidocs/index.html Fri
Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop HttpFS 0.23.6 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r0.23.7/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r0.23.7/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r0.23.7/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r0.23.7/api/index.html Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop Main 0.23.7 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r0.23.7/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r0.23.7/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r0.23.7/hadoop-hdfs-httpfs/apidocs/index.html (original)
+++ hadoop/common/site/main/publish/docs/r0.23.7/hadoop-hdfs-httpfs/apidocs/index.html Fri
Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop HttpFS 0.23.7 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r0.23.8/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r0.23.8/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r0.23.8/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r0.23.8/api/index.html Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop Main 0.23.8 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r0.23.8/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r0.23.8/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r0.23.8/hadoop-hdfs-httpfs/apidocs/index.html (original)
+++ hadoop/common/site/main/publish/docs/r0.23.8/hadoop-hdfs-httpfs/apidocs/index.html Fri
Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop HttpFS 0.23.8 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r1.0.4/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r1.0.4/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r1.0.4/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r1.0.4/api/index.html Fri Jun 21 00:01:41 2013
@@ -12,6 +12,42 @@ Hadoop 1.0.4 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r1.1.1/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r1.1.1/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r1.1.1/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r1.1.1/api/index.html Fri Jun 21 00:01:41 2013
@@ -12,6 +12,42 @@ Hadoop 1.1.1 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r1.1.2/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r1.1.2/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r1.1.2/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r1.1.2/api/index.html Fri Jun 21 00:01:41 2013
@@ -12,6 +12,42 @@ Hadoop 1.1.2 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r1.2.0/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r1.2.0/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r1.2.0/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r1.2.0/api/index.html Fri Jun 21 00:01:41 2013
@@ -12,6 +12,42 @@ Hadoop 1.2.0 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.2-alpha/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.2-alpha/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.2-alpha/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r2.0.2-alpha/api/index.html Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop Main 2.0.2-alpha API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.2-alpha/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.2-alpha/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.2-alpha/hadoop-hdfs-httpfs/apidocs/index.html
(original)
+++ hadoop/common/site/main/publish/docs/r2.0.2-alpha/hadoop-hdfs-httpfs/apidocs/index.html
Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop HttpFS 2.0.2-alpha API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.3-alpha/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.3-alpha/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.3-alpha/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r2.0.3-alpha/api/index.html Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop Main 2.0.3-alpha API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.3-alpha/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.3-alpha/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.3-alpha/hadoop-hdfs-httpfs/apidocs/index.html
(original)
+++ hadoop/common/site/main/publish/docs/r2.0.3-alpha/hadoop-hdfs-httpfs/apidocs/index.html
Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop HttpFS 2.0.3-alpha API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.4-alpha/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.4-alpha/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.4-alpha/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r2.0.4-alpha/api/index.html Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop Main 2.0.4-alpha API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.4-alpha/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.4-alpha/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.4-alpha/hadoop-hdfs-httpfs/apidocs/index.html
(original)
+++ hadoop/common/site/main/publish/docs/r2.0.4-alpha/hadoop-hdfs-httpfs/apidocs/index.html
Fri Jun 21 00:01:41 2013
@@ -13,6 +13,42 @@ Apache Hadoop HttpFS 2.0.4-alpha API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.5-alpha/api/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.5-alpha/api/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.5-alpha/api/index.html (original)
+++ hadoop/common/site/main/publish/docs/r2.0.5-alpha/api/index.html Fri Jun 21 00:01:41 2013
@@ -11,6 +11,42 @@
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hadoop/common/site/main/publish/docs/r2.0.5-alpha/hadoop-hdfs-httpfs/apidocs/index.html
URL: http://svn.apache.org/viewvc/hadoop/common/site/main/publish/docs/r2.0.5-alpha/hadoop-hdfs-httpfs/apidocs/index.html?rev=1495245&r1=1495244&r2=1495245&view=diff
==============================================================================
--- hadoop/common/site/main/publish/docs/r2.0.5-alpha/hadoop-hdfs-httpfs/apidocs/index.html
(original)
+++ hadoop/common/site/main/publish/docs/r2.0.5-alpha/hadoop-hdfs-httpfs/apidocs/index.html
Fri Jun 21 00:01:41 2013
@@ -11,6 +11,42 @@
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;



Mime
View raw message