You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ma...@apache.org on 2013/06/23 20:54:43 UTC

svn commit: r1495873 - in /incubator/curator/site/trunk: apidocs/index.html curator-recipes/apidocs/index.html curator-recipes/testapidocs/index.html testapidocs/index.html

Author: markt
Date: Sun Jun 23 18:54:43 2013
New Revision: 1495873

URL: http://svn.apache.org/r1495873
Log:
Fix published Javadoc affected by CVE-2013-1571.
This commit has been performed by the ASF Infrastructure team.

Please ensure that your build processes are reviewed (and fixed if
necessary) to ensure that any updates to this Javadoc do not
re-introduce the vulnerability.

Modified:
    incubator/curator/site/trunk/apidocs/index.html
    incubator/curator/site/trunk/curator-recipes/apidocs/index.html
    incubator/curator/site/trunk/curator-recipes/testapidocs/index.html
    incubator/curator/site/trunk/testapidocs/index.html

Modified: incubator/curator/site/trunk/apidocs/index.html
URL: http://svn.apache.org/viewvc/incubator/curator/site/trunk/apidocs/index.html?rev=1495873&r1=1495872&r2=1495873&view=diff
==============================================================================
--- incubator/curator/site/trunk/apidocs/index.html (original)
+++ incubator/curator/site/trunk/apidocs/index.html Sun Jun 23 18:54:43 2013
@@ -13,6 +13,42 @@ Apache Curator 2.0.2-incubating-SNAPSHOT
         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;
@@ -37,4 +73,4 @@ This document is designed to be viewed u
 Link to<A HREF="overview-summary.html">Non-frame version.</A>
 </NOFRAMES>
 </FRAMESET>
-</HTML>
\ No newline at end of file
+</HTML>

Modified: incubator/curator/site/trunk/curator-recipes/apidocs/index.html
URL: http://svn.apache.org/viewvc/incubator/curator/site/trunk/curator-recipes/apidocs/index.html?rev=1495873&r1=1495872&r2=1495873&view=diff
==============================================================================
--- incubator/curator/site/trunk/curator-recipes/apidocs/index.html (original)
+++ incubator/curator/site/trunk/curator-recipes/apidocs/index.html Sun Jun 23 18:54:43 2013
@@ -13,6 +13,42 @@ Curator Recipes 2.0.2-incubating-SNAPSHO
         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;
@@ -37,4 +73,4 @@ This document is designed to be viewed u
 Link to<A HREF="overview-summary.html">Non-frame version.</A>
 </NOFRAMES>
 </FRAMESET>
-</HTML>
\ No newline at end of file
+</HTML>

Modified: incubator/curator/site/trunk/curator-recipes/testapidocs/index.html
URL: http://svn.apache.org/viewvc/incubator/curator/site/trunk/curator-recipes/testapidocs/index.html?rev=1495873&r1=1495872&r2=1495873&view=diff
==============================================================================
--- incubator/curator/site/trunk/curator-recipes/testapidocs/index.html (original)
+++ incubator/curator/site/trunk/curator-recipes/testapidocs/index.html Sun Jun 23 18:54:43 2013
@@ -13,6 +13,42 @@ Curator Recipes 2.0.2-incubating-SNAPSHO
         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;
@@ -37,4 +73,4 @@ This document is designed to be viewed u
 Link to<A HREF="overview-summary.html">Non-frame version.</A>
 </NOFRAMES>
 </FRAMESET>
-</HTML>
\ No newline at end of file
+</HTML>

Modified: incubator/curator/site/trunk/testapidocs/index.html
URL: http://svn.apache.org/viewvc/incubator/curator/site/trunk/testapidocs/index.html?rev=1495873&r1=1495872&r2=1495873&view=diff
==============================================================================
--- incubator/curator/site/trunk/testapidocs/index.html (original)
+++ incubator/curator/site/trunk/testapidocs/index.html Sun Jun 23 18:54:43 2013
@@ -13,6 +13,42 @@ Apache Curator 2.0.2-incubating-SNAPSHOT
         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;
@@ -37,4 +73,4 @@ This document is designed to be viewed u
 Link to<A HREF="overview-summary.html">Non-frame version.</A>
 </NOFRAMES>
 </FRAMESET>
-</HTML>
\ No newline at end of file
+</HTML>