Skip to content

Commit 9497a5f

Browse files
committed
Fix errant slash in url paths
Cacti#5573
1 parent 7850924 commit 9497a5f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

graph.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function graph_view(array $rras, string $graph_title) {
168168

169169
<?php
170170
if (is_realm_allowed(10) && $graph_template_id > 0) {
171-
print "<a class='iconLink' role='link' title='" . __esc('Edit Graph Template') . "' href='" . html_escape(CACTI_PATH_URL . '/graph_templates.php?action=template_edit&id=' . $graph_template_id) . "'><img src='" . html_escape(CACTI_PATH_URL . 'images/template_edit.png') . "'></img></a>";
171+
print "<a class='iconLink' role='link' title='" . __esc('Edit Graph Template') . "' href='" . html_escape(CACTI_PATH_URL . 'graph_templates.php?action=template_edit&id=' . $graph_template_id) . "'><img src='" . html_escape(CACTI_PATH_URL . 'images/template_edit.png') . "'></img></a>";
172172
print '<br/>';
173173
}
174174

@@ -441,7 +441,7 @@ function graph_zoom(array $rras, string $graph_title) {
441441
<br>
442442
<?php
443443
if (is_realm_allowed(10) && $graph_template_id > 0) {
444-
print "<a class='iconLink' role='link' title='" . __esc('Edit Graph Template') . "' href='" . html_escape(CACTI_PATH_URL . '/graph_templates.php?action=template_edit&id=' . $graph_template_id) . "'><img src='" . html_escape(CACTI_PATH_URL . 'images/template_edit.png') . "'></img></a>";
444+
print "<a class='iconLink' role='link' title='" . __esc('Edit Graph Template') . "' href='" . html_escape(CACTI_PATH_URL . 'graph_templates.php?action=template_edit&id=' . $graph_template_id) . "'><img src='" . html_escape(CACTI_PATH_URL . 'images/template_edit.png') . "'></img></a>";
445445
print '<br/>';
446446
}
447447

help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
print json_encode(
8787
array(
8888
'status' => 'Success',
89-
'location' => CACTI_PATH_URL . '/docs/' . $page
89+
'location' => CACTI_PATH_URL . 'docs/' . $page
9090
)
9191
);
9292
} else {

lib/data_query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function run_data_query($host_id, $snmp_query_id, $automation = false, $force =
7373

7474
$fgc_contextoption = get_default_contextoption();
7575
$fgc_context = stream_context_create($fgc_contextoption);
76-
$response = @file_get_contents(get_url_type() . '://' . $hostname . $port . CACTI_PATH_URL . '/remote_agent.php?action=runquery&host_id=' . $host_id . '&data_query_id=' . $snmp_query_id, false, $fgc_context);
76+
$response = @file_get_contents(get_url_type() . '://' . $hostname . $port . CACTI_PATH_URL . 'remote_agent.php?action=runquery&host_id=' . $host_id . '&data_query_id=' . $snmp_query_id, false, $fgc_context);
7777

7878
if ($response != '') {
7979
$response = json_decode($response, true);

0 commit comments

Comments
 (0)