Skip to content

Graph URLs are absolute paths. #13

@declaresub

Description

@declaresub

The graph URL paths in the html generated by mailgraph.cgi are absolute. This forces contortions to get reverse-proxy to mailgraph behind an admin interface working. A better solution might be to make the URLs relative by changing the code at line 181-185 in mailgraph.cgi from

for my $n (0..$#graphs) {
    print "<h2 id=\"G$n\">$graphs[$n]{title}</h2>\n";
    print "<p><img src=\"$scriptname?${n}-n\" alt=\"mailgraph\"/><br/>\n";
    print "<img src=\"$scriptname?${n}-e\" alt=\"mailgraph\"/></p>\n";
}

to

for my $n (0..$#graphs) {
    print "<h2 id=\"G$n\">$graphs[$n]{title}</h2>\n";
    print "<p><img src=\"?${n}-n\" alt=\"mailgraph\"/><br/>\n";
    print "<img src=\"?${n}-e\" alt=\"mailgraph\"/></p>\n";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions