Commit 30da8bf78d3a3c02a9f455a8725694e45a61a29a
1 parent
84e027e8
KTS-2178
"cross site scripting" Updated. Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6950 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
5 changed files
with
16 additions
and
16 deletions
templates/ktcore/document/metadata_history.smarty
| 1 | -<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Version History{/i18n}:<br />{$document->getName()}</h2> | |
| 1 | +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Version History{/i18n}:<br />{$document->getName()|sanitize}</h2> | |
| 2 | 2 | |
| 3 | 3 | <p class="descriptiveText">{i18n}This page lists versions of document metadata and allows you to compare a metadata version with the current metadata content.{/i18n}</p> |
| 4 | 4 | |
| ... | ... | @@ -27,9 +27,9 @@ |
| 27 | 27 | {if ($document->getMetadataVersion() == $oVersion->getMetadataVersion())} |
| 28 | 28 | <strong>{i18n}current version{/i18n}</strong> |
| 29 | 29 | {else} |
| 30 | - <a href="{addQS}action=viewComparison&fDocumentId={$document->getId()}&fBaseVersion={$oVersion->getMetadataVersionId()}&fComparisonVersion={$oVersion->getCurrentMetadataVersionId()}{/addQS}">{i18n}compare with current{/i18n}</a></td> | |
| 30 | + <a href="{addQS}action=viewComparison&fDocumentId={$document->getId()}&fBaseVersion={$oVersion->getMetadataVersionId()}&fComparisonVersion={$oVersion->getCurrentMetadataVersionId()}{/addQS}">{i18n}compare with current{/i18n}</a></td> | |
| 31 | 31 | {/if} |
| 32 | - </td> | |
| 32 | + </td> | |
| 33 | 33 | <td> |
| 34 | 34 | {if (count($versions) == 1)} |
| 35 | 35 | — |
| ... | ... | @@ -41,5 +41,5 @@ |
| 41 | 41 | </tr> |
| 42 | 42 | {/foreach} |
| 43 | 43 | </tbody> |
| 44 | - | |
| 44 | + | |
| 45 | 45 | </table> | ... | ... |
templates/ktcore/document/ownershipchangeaction.smarty
| 1 | -<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Change Ownership{/i18n}:<br />{$context->oDocument->getName()}</h2> | |
| 1 | +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Change Ownership{/i18n}:<br />{$context->oDocument->getName()|sanitize}</h2> | |
| 2 | 2 | |
| 3 | 3 | {$form->render()} | ... | ... |
templates/ktcore/document/resolved_permissions_user.smarty
| 1 | -<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Resolved permissions per user{/i18n}:<br />{$context->oDocument->getName()}</h2> | |
| 1 | +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Resolved permissions per user{/i18n}:<br />{$context->oDocument->getName()|sanitize}</h2> | |
| 2 | 2 | |
| 3 | 3 | <p class="descriptiveText">{i18n}This page shows the permissions that |
| 4 | 4 | individual users have on this document. Only the users which have permissions |
| 5 | -assigned are shown.{/i18n}</p> | |
| 5 | +assigned are shown.{/i18n}</p> | |
| 6 | 6 | |
| 7 | 7 | <p class="descriptiveText">{i18n}Users may have permissions on this |
| 8 | 8 | document due to membership of a group, or fulfilling a specific role on |
| 9 | -this document.{/i18n}</p> | |
| 9 | +this document.{/i18n}</p> | |
| 10 | 10 | |
| 11 | 11 | {if (empty($users)) } |
| 12 | 12 | <div class="ktInfoMessage"><span>{i18n}No users have permissions on this item.{/i18n}</span></div> | ... | ... |
templates/ktcore/document/transaction_history.smarty
| 1 | -<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Transaction History{/i18n}:<br />{$document->getName()}</h2> | |
| 1 | +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Transaction History{/i18n}:<br />{$document->getName()|sanitize}</h2> | |
| 2 | 2 | |
| 3 | 3 | <p class="descriptiveText">{i18n}This page provides details of all activities that have been carried out on the document.{/i18n}</p> |
| 4 | 4 | |
| ... | ... | @@ -20,10 +20,10 @@ |
| 20 | 20 | <td class="username">{$aTransactionRow.user_name}</td> |
| 21 | 21 | <td class="action">{i18n}{$aTransactionRow.transaction_name}{/i18n}</td> |
| 22 | 22 | <td class="date">{$aTransactionRow.datetime}</td> |
| 23 | - <td class="contentversion">{$aTransactionRow.version}</td> | |
| 24 | - <td class="comment">{$aTransactionRow.comment}</td> | |
| 23 | + <td class="contentversion">{$aTransactionRow.version}</td> | |
| 24 | + <td class="comment">{$aTransactionRow.comment|sanitize}</td> | |
| 25 | 25 | </tr> |
| 26 | 26 | {/foreach} |
| 27 | 27 | </tbody> |
| 28 | - | |
| 28 | + | |
| 29 | 29 | </table> | ... | ... |
templates/ktcore/document/view.smarty
| 1 | -<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Details{/i18n}:<br />{$context->oDocument->getName()}</h2> | |
| 1 | +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Details{/i18n}:<br />{$context->oDocument->getName()|sanitize}</h2> | |
| 2 | 2 | |
| 3 | 3 | {if ($document->getIsCheckedOut() == 1)} |
| 4 | 4 | {capture assign=checkout_user}<strong>{$sCheckoutUser}</strong>{/capture} |
| ... | ... | @@ -9,18 +9,18 @@ |
| 9 | 9 | {else} |
| 10 | 10 | {if ($canCheckin)} |
| 11 | 11 | <div class="ktInfoMessage"> |
| 12 | -<span>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#, but you | |
| 12 | +<span>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#, but you | |
| 13 | 13 | have sufficient priviledges to cancel their checkout.{/i18n}</span> |
| 14 | 14 | </div> |
| 15 | 15 | {else} |
| 16 | 16 | <div class="ktInfoMessage"> |
| 17 | - <span>{i18n arg_checkoutuser=$checkout_user arg_appname="$appname"}This document is currently checked out by #checkoutuser#. You cannot make | |
| 17 | + <span>{i18n arg_checkoutuser=$checkout_user arg_appname="$appname"}This document is currently checked out by #checkoutuser#. You cannot make | |
| 18 | 18 | changes until that user checks it in. If you have urgent modifications to make, please |
| 19 | 19 | contact your #appname# Administrator.{/i18n}</span> |
| 20 | 20 | </div> |
| 21 | 21 | {/if} |
| 22 | 22 | {/if} |
| 23 | -{/if} | |
| 23 | +{/if} | |
| 24 | 24 | |
| 25 | 25 | {if ($document->getImmutable() == true)} |
| 26 | 26 | <div class="ktInfoMessage"> | ... | ... |