Skip to content
Permalink
Browse files

fixed problem with ' in pic titles; fixes #7, fixes #187

  • Loading branch information...
following5 committed May 27, 2013
1 parent 23ab650 commit 59333404126f37fb8756c4fd68ab0db1b904228e
Showing with 3 additions and 1 deletion.
  1. +2 −1 htdocs/templates2/ocstyle/res_logpicture.tpl
  2. +1 −0 htdocs/templates2/ocstyle/res_logpictures.tpl
@@ -1,9 +1,10 @@
{* Unicode Reminder メモ *}
<div style="width:{$itemwidth}px; height:{if $loguser || $logdate}150{else}120{/if}px; overflow:hidden">
<table width="100%" height="100%"><tr>
<td style="text-align:center; padding:0" align="center" valign="middle">
<div style="max-width:{$itemwidth}px; overflow:hidden">
<a id="pl{$picture.pic_uuid}" href="{$picture.pic_url}">
<img src="thumbs.php?uuid={$picture.pic_uuid}" class="img-shadow-loggallery" onclick="enlarge(this);" longdesc="{$picture.pic_url}" onload="document.getElementById('pl{$picture.pic_uuid}').removeAttribute('href'); this.alt='{$picture.title|escape}'" title="{$picture.title|escape}"/>
<img src="thumbs.php?uuid={$picture.pic_uuid}" class="img-shadow-loggallery" onclick="enlarge(this);" longdesc="{$picture.pic_url}" onload="document.getElementById('pl{$picture.pic_uuid}').removeAttribute('href'); this.alt='{$picture.title|replace:"'":"´"}'" title="{$picture.title|replace:"'":"´"}"/> {* ' in title would cause enlargit and IE errors, even if escaped *}
</a>
{if $logdate || $loguser}
<div style="line-height:1.2em; max-height:2.4em; margin-top:5px">
@@ -1,4 +1,5 @@
{* see lib2/logic/logpics.inc.php for data retreival *}
{* Unicode Reminder メモ *}

{if $paging}
<div class="content2-container">

0 comments on commit 5933340

Please sign in to comment.
You can’t perform that action at this time.