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

svn commit: r866858 - in /websites/staging/ctakes/trunk: cgi-bin/ content/ content/apidocs/3.0.0/index.html content/apidocs/trunk/index.html

Author: buildbot
Date: Fri Jun 21 18:01:15 2013
New Revision: 866858

Log:
Staging update by buildbot for ctakes

Modified:
    websites/staging/ctakes/trunk/cgi-bin/   (props changed)
    websites/staging/ctakes/trunk/content/   (props changed)
    websites/staging/ctakes/trunk/content/apidocs/3.0.0/index.html
    websites/staging/ctakes/trunk/content/apidocs/trunk/index.html

Propchange: websites/staging/ctakes/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jun 21 18:01:15 2013
@@ -1 +1 @@
-1493815
+1495527

Propchange: websites/staging/ctakes/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jun 21 18:01:15 2013
@@ -1 +1 @@
-1493815
+1495527

Modified: websites/staging/ctakes/trunk/content/apidocs/3.0.0/index.html
==============================================================================
--- websites/staging/ctakes/trunk/content/apidocs/3.0.0/index.html (original)
+++ websites/staging/ctakes/trunk/content/apidocs/3.0.0/index.html Fri Jun 21 18:01:15 2013
@@ -12,6 +12,42 @@ Generated Documentation (Untitled)
         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: websites/staging/ctakes/trunk/content/apidocs/trunk/index.html
==============================================================================
--- websites/staging/ctakes/trunk/content/apidocs/trunk/index.html (original)
+++ websites/staging/ctakes/trunk/content/apidocs/trunk/index.html Fri Jun 21 18:01:15 2013
@@ -12,6 +12,42 @@ Generated Documentation (Untitled)
         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;