Author: nextgens
Date: 2008-06-06 08:39:29 +0000 (Fri, 06 Jun 2008)
New Revision: 20234

Modified:
   trunk/apps/new_installer/src/Sha1Test.java
Log:
new_installer: make Sha1test work with ftp too

Modified: trunk/apps/new_installer/src/Sha1Test.java
===================================================================
--- trunk/apps/new_installer/src/Sha1Test.java  2008-06-05 22:57:27 UTC (rev 
20233)
+++ trunk/apps/new_installer/src/Sha1Test.java  2008-06-06 08:39:29 UTC (rev 
20234)
@@ -231,7 +231,8 @@
                                        // Redirection should be allowed only 
for HTTP and HTTPS
                                        // and should be limited to 5 
redirections at most.
                                        if (target == null || 
!(target.getProtocol().equals("http")
-                                                               || 
target.getProtocol().equals("https"))
+                                                               || 
target.getProtocol().equals("https")
+                                                               || 
target.getProtocol().equals("ftp"))
                                                        || redirects >= 5)
                                        {
                                                throw new 
SecurityException("illegal URL redirect");


Reply via email to