You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by am...@apache.org on 2013/06/21 01:49:03 UTC

svn commit: r1495243 - in /cayenne/site/cms/trunk/content/docs: 1.2/api/cayenne/index.html 2.0/api/cayenne/index.html 3.0/api/index.html 3.1/api/index.html

Author: amaniatis
Date: Thu Jun 20 23:49:03 2013
New Revision: 1495243

URL: http://svn.apache.org/r1495243
Log:
Fix security issue in Javadocs as per http://www.oracle.com/technetwork/topics/security/javacpujun2013-1899847.html

Modified:
    cayenne/site/cms/trunk/content/docs/1.2/api/cayenne/index.html
    cayenne/site/cms/trunk/content/docs/2.0/api/cayenne/index.html
    cayenne/site/cms/trunk/content/docs/3.0/api/index.html
    cayenne/site/cms/trunk/content/docs/3.1/api/index.html

Modified: cayenne/site/cms/trunk/content/docs/1.2/api/cayenne/index.html
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/content/docs/1.2/api/cayenne/index.html?rev=1495243&r1=1495242&r2=1495243&view=diff
==============================================================================
--- cayenne/site/cms/trunk/content/docs/1.2/api/cayenne/index.html (original)
+++ cayenne/site/cms/trunk/content/docs/1.2/api/cayenne/index.html Thu Jun 20 23:49:03 2013
@@ -10,6 +10,42 @@ Cayenne API Documentation - v.1.2
     targetPage = "" + window.location.search;
     if (targetPage != "" && targetPage != "undefined")
        targetPage = targetPage.substring(1);
+    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: cayenne/site/cms/trunk/content/docs/2.0/api/cayenne/index.html
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/content/docs/2.0/api/cayenne/index.html?rev=1495243&r1=1495242&r2=1495243&view=diff
==============================================================================
--- cayenne/site/cms/trunk/content/docs/2.0/api/cayenne/index.html (original)
+++ cayenne/site/cms/trunk/content/docs/2.0/api/cayenne/index.html Thu Jun 20 23:49:03 2013
@@ -10,6 +10,42 @@ Apache Cayenne API Documentation - v.2.0
     targetPage = "" + window.location.search;
     if (targetPage != "" && targetPage != "undefined")
        targetPage = targetPage.substring(1);
+    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: cayenne/site/cms/trunk/content/docs/3.0/api/index.html
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/content/docs/3.0/api/index.html?rev=1495243&r1=1495242&r2=1495243&view=diff
==============================================================================
--- cayenne/site/cms/trunk/content/docs/3.0/api/index.html (original)
+++ cayenne/site/cms/trunk/content/docs/3.0/api/index.html Thu Jun 20 23:49:03 2013
@@ -13,6 +13,42 @@ Cayenne Documentation 3.0.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: cayenne/site/cms/trunk/content/docs/3.1/api/index.html
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/content/docs/3.1/api/index.html?rev=1495243&r1=1495242&r2=1495243&view=diff
==============================================================================
--- cayenne/site/cms/trunk/content/docs/3.1/api/index.html (original)
+++ cayenne/site/cms/trunk/content/docs/3.1/api/index.html Thu Jun 20 23:49:03 2013
@@ -13,6 +13,42 @@ Cayenne Documentation 3.1B2 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;