From 5bf112fc00117835a4b97dc051fa3aeeac3d01ed Mon Sep 17 00:00:00 2001 From: angiesg79 <53932830+angiesg79@users.noreply.github.com> Date: Mon, 14 Oct 2019 22:40:59 +0200 Subject: [PATCH] Fix validation errors "w3c validator" - Bad value https://www..../attachments/article/3165/Delibera n. 20 Consiglio di Istituto del 12 marzo 2019.pdf for attribute href on element a: Illegal character in path segment: space is not allowed - the layaut table cannot contain the "caption" element --- .../site/views/attachments/tmpl/default.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/attachments_component/site/views/attachments/tmpl/default.php b/attachments_component/site/views/attachments/tmpl/default.php index 174e7700..0c761a63 100644 --- a/attachments_component/site/views/attachments/tmpl/default.php +++ b/attachments_component/site/views/attachments/tmpl/default.php @@ -55,8 +55,9 @@ $html .= "\n
style\" id=\"$div_id\">\n"; } +$html .= "

{$this->title}

"; + $html .= "\n"; -$html .= "\n"; // Add the column titles, if requested if ( $this->show_column_titles ) { @@ -199,7 +200,7 @@ $tooltip = JText::sprintf('ATTACH_ACCESS_THIS_URL_S', $attachment->url); } } - $html .= ""; + $html .= ""; $html .= JHtml::image('com_attachments/file_icons/'.$icon, $tooltip, null, true); if ( ($attachment->uri_type == 'url') && $this->superimpose_link_icons ) { if ( $attachment->url_valid ) { @@ -210,7 +211,8 @@ } } $html .= ""; - $html .= "$filename"; + $newurl = str_replace(' ', '%20', $url); + $html .= "$filename"; } else { $tooltip = JText::sprintf('ATTACH_DOWNLOAD_THIS_FILE_S', $actual_filename);
{$this->title}