Skip to content

Commit

Permalink
Get changes from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Takika committed Dec 29, 2022
1 parent 128a587 commit 3eba6b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions listcommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function storage_init($p)
} else {
$p['fetch_headers'] = trim(strtoupper(join(' ', $mailinglist_headers)));
}

return($p);
}

Expand Down Expand Up @@ -92,7 +92,7 @@ private function create_link($key, $value, $title)
$targets = explode(',', $value);

// only use 1 of the targets
$target = str_replace(array("'", '"'), '', $targets[0]);
$target = $this->strip_quotes($targets[0]);

// first strip angle brackets
$link = trim($target, "<>");
Expand All @@ -116,5 +116,10 @@ private function create_link($key, $value, $title)

return($a);
}

private function strip_quotes($str)
{
return str_replace(array("'", '"'), '', $str);
}
}
?>

0 comments on commit 3eba6b5

Please sign in to comment.