- Timestamp:
- 2017-08-09T21:10:54+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/download/DownloadJob.java
r31831 r31865 1081 1081 AppendLineOnlyFileDocument download_log = DownloadJob.this.download_log; 1082 1082 1083 boolean noCheckCertificate_needed = false; // determine whether this flag needs to be set for wget (under Preferences > Connection) 1084 1083 1085 while (!Thread.currentThread().isInterrupted() && (line = br.readLine()) != null 1084 1086 && !line.trim().equals("<<Finished>>") /*&& !isStopped()*/) { … … 1100 1102 DebugStream.println("***** Requesting robot.txt"); 1101 1103 ignore_for_robots = true; 1104 } 1105 else if(line.indexOf("--no-check-certificate") != -1) { 1106 downloadWarning(); 1107 noCheckCertificate_needed = true; 1102 1108 } 1103 1109 // If line contains "=> `" display text as the … … 1180 1186 } 1181 1187 } 1188 if(noCheckCertificate_needed) { // can't download from (some nested) URL as its 1189 // certificate can't be verified. User must turn on --no-check-certificate 1190 // if they want to download from there anyway, but it will do so insecurely 1191 download_log.appendLine("************"); 1192 download_log.appendLine(Dictionary.get("Mirroring.DownloadJob.Warning_No_Valid_Certificate")); 1193 download_log.appendLine(Dictionary.get("Mirroring.DownloadJob.Enable_NoCheckCertificate")); 1194 download_log.appendLine("************"); 1195 } 1182 1196 1183 1197 } catch (IOException ioe) {
Note:
See TracChangeset
for help on using the changeset viewer.