You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2013/06/19 12:53:16 UTC
svn commit: r1494543 - in /archiva/site-content/ref:
1.3.5/apidocs/index.html 1.3.5/testapidocs/index.html
1.4-M4/apidocs/index.html 1.4.0-SNAPSHOT/apidocs/index.html
Author: olamy
Date: Wed Jun 19 10:53:16 2013
New Revision: 1494543
URL: http://svn.apache.org/r1494543
Log:
apply javadoc patch
Modified:
archiva/site-content/ref/1.3.5/apidocs/index.html
archiva/site-content/ref/1.3.5/testapidocs/index.html
archiva/site-content/ref/1.4-M4/apidocs/index.html
archiva/site-content/ref/1.4.0-SNAPSHOT/apidocs/index.html
Modified: archiva/site-content/ref/1.3.5/apidocs/index.html
URL: http://svn.apache.org/viewvc/archiva/site-content/ref/1.3.5/apidocs/index.html?rev=1494543&r1=1494542&r2=1494543&view=diff
==============================================================================
--- archiva/site-content/ref/1.3.5/apidocs/index.html (original)
+++ archiva/site-content/ref/1.3.5/apidocs/index.html Wed Jun 19 10:53:16 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: archiva/site-content/ref/1.3.5/testapidocs/index.html
URL: http://svn.apache.org/viewvc/archiva/site-content/ref/1.3.5/testapidocs/index.html?rev=1494543&r1=1494542&r2=1494543&view=diff
==============================================================================
--- archiva/site-content/ref/1.3.5/testapidocs/index.html (original)
+++ archiva/site-content/ref/1.3.5/testapidocs/index.html Wed Jun 19 10:53:16 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: archiva/site-content/ref/1.4-M4/apidocs/index.html
URL: http://svn.apache.org/viewvc/archiva/site-content/ref/1.4-M4/apidocs/index.html?rev=1494543&r1=1494542&r2=1494543&view=diff
==============================================================================
--- archiva/site-content/ref/1.4-M4/apidocs/index.html (original)
+++ archiva/site-content/ref/1.4-M4/apidocs/index.html Wed Jun 19 10:53:16 2013
@@ -12,6 +12,42 @@ Archiva :: Modules 1.4-M4 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;
@@ -36,4 +72,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: archiva/site-content/ref/1.4.0-SNAPSHOT/apidocs/index.html
URL: http://svn.apache.org/viewvc/archiva/site-content/ref/1.4.0-SNAPSHOT/apidocs/index.html?rev=1494543&r1=1494542&r2=1494543&view=diff
==============================================================================
--- archiva/site-content/ref/1.4.0-SNAPSHOT/apidocs/index.html (original)
+++ archiva/site-content/ref/1.4.0-SNAPSHOT/apidocs/index.html Wed Jun 19 10:53:16 2013
@@ -10,6 +10,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;
@@ -30,4 +66,4 @@
<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p>
</noframes>
</frameset>
-</html>
\ No newline at end of file
+</html>