Do not sanitize log paths generated by url().

This commit is contained in:
Michael Stenta 2020-08-27 08:29:15 -04:00
parent 2b8bdb8bd0
commit 00695591d8
1 changed files with 3 additions and 3 deletions

View File

@ -148,11 +148,11 @@ function farm_livestock_weight_dlwg($asset) {
// Build "observed between" text.
$observed_text = t(
'observed between <a href="@previous_log_link">@previous_log_date</a> and <a href="@latest_log_link">@latest_log_date</a>',
'observed between <a href="!previous_log_link">@previous_log_date</a> and <a href="!latest_log_link">@latest_log_date</a>',
array(
'@previous_log_link' => url($previous_log_uri['path']),
'!previous_log_link' => url($previous_log_uri['path']),
'@previous_log_date' => $previous_log_date,
'@latest_log_link' => url($latest_log_uri['path']),
'!latest_log_link' => url($latest_log_uri['path']),
'@latest_log_date' => $latest_log_date)
);