From fcf1ccdc348e155e30dee159a25c69914f60d0d9 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Fri, 4 May 2007 20:44:41 +0200
Subject: [PATCH] fix for missing alt attribute for captionless JPEGs FS#1126

darcs-hash:20070504184441-7ad00-47c6f91236a21ed3dbd0b12e4ec0e9c2d717f340.gz
---
 inc/parser/xhtml.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index e397f5bd7..fad6f6120 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -931,6 +931,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
                 if($cap){
                     $ret .= ' title="'.$this->_xmlEntities($cap).'"';
                     $ret .= ' alt="'.$this->_xmlEntities($cap).'"';
+                }else{
+                    $ret .= ' alt=""';
                 }
             }else{
                 $ret .= ' alt=""';
-- 
GitLab