Skip to content

Commit

Permalink
Fixing Cacti#5701 - When $config['url_path'] = '/' import errors occur
Browse files Browse the repository at this point in the history
Bad URL formating in the templates_import.php preview mode
  • Loading branch information
TheWitness committed Apr 5, 2024
1 parent fa37c86 commit 20034b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Cacti CHANGELOG
-issue#5669: System Utilities show incorrect System Memory if memory is larger than 1k
-issue#5677: Compatibility improvements for Spikekill under PHP 8.x
-issue#5693: Fix Spikekill not following correct time in schedule, Improve PHP 8.3 in spikekill process
-issue#5701: Bad URL formating in the templates_import.php preview mode
-feature#5692: Add a "device enabled/disabled" indicator next to the graphs

1.2.26
Expand Down
2 changes: 1 addition & 1 deletion templates_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ function import() {
$.ajax({
type: 'POST',
enctype: 'multipart/form-data',
url: urlPath + '/templates_import.php?preview_only=true',
url: (urlPath != '/' ? urlPath + '/':'') + 'templates_import.php?preview_only=true',
data: data,
processData: false,
contentType: false,
Expand Down

0 comments on commit 20034b4

Please sign in to comment.