Quote src attribute of avatar image.

This commit is contained in:
takezoe
2013-07-18 03:11:56 +09:00
parent 8f056e4a82
commit 269374e6bb

View File

@@ -17,9 +17,9 @@ trait AvatarImageProvider { self: RequestCache =>
s"""${context.path}/${userName}/_avatar""" s"""${context.path}/${userName}/_avatar"""
} }
if(tooltip){ if(tooltip){
Html(s"""<img src=${src} class="avatar" style="width: ${size}px; height: ${size}px;" data-toggle="tooltip" title=${userName}/>""") Html(s"""<img src="${src}" class="avatar" style="width: ${size}px; height: ${size}px;" data-toggle="tooltip" title=${userName}/>""")
} else { } else {
Html(s"""<img src=${src} class="avatar" style="width: ${size}px; height: ${size}px;" />""") Html(s"""<img src="${src}" class="avatar" style="width: ${size}px; height: ${size}px;" />""")
} }
} }