pretty tracker wiki-parses all fields
- Status
- Open
- Subject
- pretty tracker wiki-parses all fields
- Version
- 6.x
- Category
- Usability
- Patch
- Feature
- Trackers
- Resolution status
- New
- Submitted by
- Gergely
- Lastmod by
- Gergely
- Rating
- Description
Inefficient and it is perhaps also a security leak.
See
irc log- Solution
TW5.1 update tracker_pretty_item.tpl: add parsing. I am not sure I am allowed to commit this now.
{strip}
{* $Id: tracker_pretty_item.tpl 27932 2010-07-11 12:46:53Z minger0 $ *}
{* param item, fields, wiki(wiki:page or tpl:tpl), list_mode, perms, default_group, listfields *}
{if !isset($list_mode)}{assign var=list_mode value="n"}{/if}
{if !isset($parse)}{assign var=parse value="n"}{/if}
{foreach from=$fields item=field}
{if $field.isPublic eq 'y'
and ($field.isHidden eq 'n' or ($field.isHidden eq 'c' and $item.itemUser eq $user) or $field.isHidden eq 'p' or $tiki_p_admin_trackers eq 'y')
and $field.type ne 'x'
and $field.type ne 'h'
and $listfields) or in_array($field.fieldId, $listfields
and ($field.type ne 'p' or $field.options_array0 ne 'password')
and (empty($field.visibleBy) or in_array($default_group, $field.visibleBy) or $tiki_p_admin_trackers eq 'y')
}
{capture name=value}
{if isset($perms)}User errorPlugin argument(s) missing or invalid:- page
{else}
User errorPlugin argument(s) missing or invalid:- page
{/if}
{/capture}
{set var=f_`$field.fieldId` value=$smarty.capture.value}
{else}
{set var=f_`$field.fieldId` value=''}
{/if}
{/foreach}
{set var=f_created value=$item.created}
{set var=f_lastmodif value=$item.lastModif}
{set var=f_itemId value=$item.itemId}
{set var=f_status value=$item.status}
{set var=f_itemUser value=$item.itemUser}
{*------------*}User errorPlugin argument(s) missing or invalid:- page
{/strip}
- Importance
- 8
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3576
- Created
- Tuesday 12 October, 2010 11:52:07 UTC
by Gergely - LastModif
- Tuesday 12 October, 2010 11:52:07 UTC