Commit 612eee9d26aebd1dd2d2600f20f27e74e2157103
1 parent
0ffca3d4
fix for KTS-1134: quotes are eaten by the "edit" boxes.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5995 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
5 changed files
with
6 additions
and
6 deletions
templates/kt3/fields/base.smarty
| ... | ... | @@ -11,5 +11,5 @@ |
| 11 | 11 | <p class="errorMessage"></p> |
| 12 | 12 | {/if} |
| 13 | 13 | |
| 14 | - <input type="text" name="{$name}" {if $has_id}id="{$id}"{/if} {if $has_value}value="{$value}"{/if}{if ($options.autocomplete === false)}autocomplete="off"{/if} {if $options.width}size="{$options.width}"{/if} /><input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> | |
| 14 | + <input type="text" name="{$name}" {if $has_id}id="{$id}"{/if} {if $has_value}value="{$value|htmlentities}"{/if}{if ($options.autocomplete === false)}autocomplete="off"{/if} {if $options.width}size="{$options.width}"{/if} /><input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> | |
| 15 | 15 | </div> | ... | ... |
templates/ktcore/boolean_search_edit.smarty
| ... | ... | @@ -62,7 +62,7 @@ legend { border: 1px dotted #999;} |
| 62 | 62 | <input type="hidden" name="action" value="updateSearch" /> |
| 63 | 63 | <input type="hidden" name="fSavedSearchId" value="{$iSearchId}" /> |
| 64 | 64 | {if $sNameTitle} |
| 65 | - {$sNameTitle}: <input type="text" name="name" value="{$old_name}" /> <br /> | |
| 65 | + {$sNameTitle}: <input type="text" name="name" value="{$old_name|htmlentities}" /> <br /> | |
| 66 | 66 | {/if} |
| 67 | 67 | |
| 68 | 68 | {capture assign=options} | ... | ... |
templates/ktcore/forms/widgets/selection.smarty
| ... | ... | @@ -6,11 +6,11 @@ |
| 6 | 6 | {if $options.multi}multiple="true"{/if} |
| 7 | 7 | > |
| 8 | 8 | {if $options.initial_string} |
| 9 | - <option value="">{$options.initial_string}</option> | |
| 9 | + <option value="">{$options.initial_string|htmlentities}</option> | |
| 10 | 10 | {/if} |
| 11 | 11 | {foreach item=lookup key=lookup_key from=$vocab} |
| 12 | 12 | |
| 13 | - <option value="{$lookup_key}" {if ($value == $lookup_key)}selected="selected"{/if}>{$lookup}</option> | |
| 13 | + <option value="{$lookup_key|htmlentities}" {if ($value == $lookup_key)}selected="selected"{/if}>{$lookup|htmlentities}</option> | |
| 14 | 14 | {/foreach} |
| 15 | 15 | </select> |
| 16 | 16 | {/if} | ... | ... |
templates/ktcore/forms/widgets/string.smarty
| 1 | - <input type="text" name="{$name}" {if $has_id}id="{$id}"{/if} {if $has_value}value="{$value}"{/if}{if ($options.autocomplete === false)}autocomplete="off"{/if} {if $options.width}size="{$options.width}"{/if} /> | |
| 1 | + <input type="text" name="{$name}" {if $has_id}id="{$id}"{/if} {if $has_value}value="{$value|htmlentities}"{/if}{if ($options.autocomplete === false)}autocomplete="off"{/if} {if $options.width}size="{$options.width}"{/if} /> | ... | ... |
templates/ktcore/forms/widgets/text.smarty
| ... | ... | @@ -2,4 +2,4 @@ |
| 2 | 2 | {if $has_id} id="{$id}"{/if} |
| 3 | 3 | {if $options.rows} rows="{$options.rows}"{else} rows="7"{/if} |
| 4 | 4 | {if $options.cols} cols="{$options.cols}"{else} cols="45"{/if} |
| 5 | - >{if $has_value}{$value}{/if}</textarea> | |
| 5 | + >{if $has_value}{$value|htmlentities}{/if}</textarea> | ... | ... |