← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1397: Minor fix

 

------------------------------------------------------------
revno: 1397
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-02-05 08:29:49 +0100
message:
  Minor fix
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/document/action/SaveDocumentAction.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/document/action/SaveDocumentAction.java'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/document/action/SaveDocumentAction.java	2009-08-20 08:17:49 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/document/action/SaveDocumentAction.java	2010-02-05 07:29:49 +0000
@@ -47,6 +47,7 @@
     private static final Log log = LogFactory.getLog( SaveDocumentAction.class );
     
     private static final String HTTP_PREFIX = "http://";;
+    private static final String HTTPS_PREFIX = "https://";;
     
     // -------------------------------------------------------------------------
     // Dependencies
@@ -136,7 +137,7 @@
         }
         else
         {
-            if ( !url.startsWith( HTTP_PREFIX ) )
+            if ( !( url.startsWith( HTTP_PREFIX ) || url.startsWith( HTTPS_PREFIX ) ) )
             {
                 url = HTTP_PREFIX + url;
             }