Skip to content

Commit c0495be

Browse files
authored
Use http: instead of https: for downloading CHMs (#163)
1 parent 5b983c4 commit c0495be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/fetch-chms.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?php
22
define("DEBUG", 0);
3-
$BUILDDIR = "https://www.mumumu.org/chm";
3+
$BUILDDIR = "http://www.mumumu.org/chm";
44
$TMPDIR = sys_get_temp_dir();
55
$CHMDIR = "/local/mirrors/phpweb/distributions/manual";
66

77
$chminfo = "$BUILDDIR/build.log";
8-
fetch($chminfo, tempnam(sys_get_temp_dir(), "chm"));
8+
$tmpfilename = tempnam(sys_get_temp_dir(), "chm");
9+
fetch($chminfo, $tmpfilename);
910

10-
$chms = file($chminfo, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
11+
$chms = file($tmpfilename, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
1112
if (!$chms) {
1213
err("No chm info\n");
1314
return 1;

0 commit comments

Comments
 (0)