You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/08/07 12:30:26 UTC
svn commit: r1511238 [2/2] - in /myfaces/site/publish/tobago:
apidocs-1.0.10/ apidocs-1.0.11/ apidocs-1.0.12/ apidocs-1.0.13/
apidocs-1.0.14/ apidocs-1.0.15/ apidocs-1.0.16/ apidocs-1.0.17/
apidocs-1.0.18/ apidocs-1.0.19/ apidocs-1.0.20/ apidocs-1.0.21...
Modified: myfaces/site/publish/tobago/tobago-tool/apidocs/index.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-tool/apidocs/index.html?rev=1511238&r1=1511237&r2=1511238&view=diff
==============================================================================
--- myfaces/site/publish/tobago/tobago-tool/apidocs/index.html (original)
+++ myfaces/site/publish/tobago/tobago-tool/apidocs/index.html Wed Aug 7 10:30:25 2013
@@ -11,6 +11,42 @@ Tobago Tool 1.0.11-SNAPSHOT API
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: myfaces/site/publish/tobago/tobago-tool/maven-apt-plugin/apidocs/index.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-tool/maven-apt-plugin/apidocs/index.html?rev=1511238&r1=1511237&r2=1511238&view=diff
==============================================================================
--- myfaces/site/publish/tobago/tobago-tool/maven-apt-plugin/apidocs/index.html (original)
+++ myfaces/site/publish/tobago/tobago-tool/maven-apt-plugin/apidocs/index.html Wed Aug 7 10:30:25 2013
@@ -11,6 +11,42 @@ Maven Apt Plugin 1.0.12-SNAPSHOT API
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: myfaces/site/publish/tobago/tobago-tool/maven-theme-plugin/apidocs/index.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/tobago-tool/maven-theme-plugin/apidocs/index.html?rev=1511238&r1=1511237&r2=1511238&view=diff
==============================================================================
--- myfaces/site/publish/tobago/tobago-tool/maven-theme-plugin/apidocs/index.html (original)
+++ myfaces/site/publish/tobago/tobago-tool/maven-theme-plugin/apidocs/index.html Wed Aug 7 10:30:25 2013
@@ -11,6 +11,42 @@ Maven Tobago Theme Plugin 1.0.8-SNAPSHOT
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;