BOINC web: handle HTTPS links for add-ons correctly; fix BOINC Monitor entry

This commit is contained in:
David Anderson 2017-06-24 14:42:32 -07:00
parent 4093be9579
commit 56f3f9a482
2 changed files with 3 additions and 3 deletions

View File

@ -63,8 +63,8 @@ array(
'BOINC Monitor',
'',
'A desktop gadget that shows the status of running tasks',
'http://www.myfavoritegadgets.info/',
'Windows Vista/7',
'https://windows10gadgets.pro/',
'Windows Vista/7/8.1/10',
'BOINC Monitor shows BOINC tasks progress. Resizable! Save settings to file. Color changeable for all gadget\'s elements, include background. You can add new BOINC projects in XML list file.',
'1305409902'
),

View File

@ -9,7 +9,7 @@ $item = $_GET['item'];
function show_item($y) {
$d = gmdate("g:i A \U\T\C, F d Y", $y[7]);
$file = $y[0];
if (strstr($file, 'http://')) {
if (strstr($file, 'http://') || strstr($file, 'https://')) {
$url = $file;
} else {
$url = "https://boinc.berkeley.edu/addons/$file";