From 4db3c5bad634a68f06d6507a7932eda47f59e737 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 13 Jun 2007 16:39:39 +0200 Subject: [PATCH] added default escaping for smarty darcs-hash:20070613143939-6e07b-ae5b211bd9fdbfd9c9962cfa9fb85dd2f3410674.gz --- init.php | 1 + templates/entry_edit.tpl | 64 ++++++++++++++++++++-------------------- templates/entry_show.tpl | 2 +- templates/filter.tpl | 15 +--------- templates/header.tpl | 1 - templates/list_entry.tpl | 2 +- 6 files changed, 36 insertions(+), 49 deletions(-) diff --git a/init.php b/init.php index 9bd00d2..ec981fa 100644 --- a/init.php +++ b/init.php @@ -37,4 +37,5 @@ $smarty->use_sub_dirs = 0; $smarty->template_dir = './templates'; $smarty->force_compile = $conf['smartycompile']; + $smarty->default_modifiers = 'escape:"htmlall":"UTF-8"'; ?> diff --git a/templates/entry_edit.tpl b/templates/entry_edit.tpl index 02def0b..00453ca 100644 --- a/templates/entry_edit.tpl +++ b/templates/entry_edit.tpl @@ -9,7 +9,7 @@
- + @@ -20,19 +20,19 @@ {* always required ... if $fields.name *} - + {* /if *} {if $fields.givenname} - + {/if} {if $fields.title} - + {/if}
{$lang.name}:
{$lang.givenname}:
{$lang.title}:
@@ -56,70 +56,70 @@ {$lang.organization}: - + {/if} {if $fields.office} {$lang.office}: - + {/if} {if $fields.street} {$lang.street}: - + {/if} {if $fields.zip} {$lang.zip}: - + {/if} {if $fields.location} {$lang.location}: - + {/if} {if $fields.state} {$lang.state}: - + {/if} {if $fields.country} {$lang.country}: -
+
{/if} {if $fields.phone} {$lang.phone}: - + {/if} {if $fields.switchboard} {$lang.switchboard}: - + {/if} {if $fields.fax} {$lang.fax}: - + {/if} {if $fields.pager} {$lang.pager}: - + {/if} {if $fields.manager} @@ -136,13 +136,13 @@ {if $fields.position} {$lang.position}: - + {/if} {if $fields.department} {$lang.department}: - + {/if} @@ -158,25 +158,25 @@ {if $fields.homestreet} {$lang.homestreet}: - + {/if} {if $fields.homephone} {$lang.homephone}: - + {/if} {if $fields.mobile} {$lang.mobile}: - + {/if} {if $fields.url} {$lang.url}: - + {/if} {if $fields.photo} @@ -194,19 +194,19 @@ {if $fields.birthday} {$lang.birthday}:
({$lang.msg_dateformat}) - + {/if} {if $fields.anniversary} {$lang.anniversary}:
({$lang.msg_dateformat}) - + {/if} {if $fields.spouse} {$lang.spouse}: - + {/if} @@ -217,7 +217,7 @@ {foreach from=$entry.mail item=mail} {$lang.mail} {counter}: - + {/foreach} @@ -232,13 +232,13 @@ {if $fields.instantmessenger} {$lang.instantmessenger}: - + {/if} {if $fields.ipphone} {$lang.ipphone}: - + {/if} @@ -260,14 +260,14 @@ {$lang.marker}:
({$lang.msg_tagsep}) -
+ {/if} {if $fields.note} {$lang.note}: - + {/if} @@ -279,7 +279,7 @@ {$lang.certificate}: - +
@@ -287,14 +287,14 @@ {if $fields.domain} {$lang.domain}: - + {/if} {if $fields.timezone} {$lang.timezone}: -
+
{/if} diff --git a/templates/entry_show.tpl b/templates/entry_show.tpl index e9678b6..3f0c5f2 100644 --- a/templates/entry_show.tpl +++ b/templates/entry_show.tpl @@ -1,7 +1,7 @@ {include file="header.tpl"} {if $entry.photo != ''} - + {/if}

diff --git a/templates/filter.tpl b/templates/filter.tpl index 136776b..73f783e 100644 --- a/templates/filter.tpl +++ b/templates/filter.tpl @@ -29,19 +29,7 @@
  • *
  • -{if $conf.openxchange} -
    - - - - -
    -{/if} - -{if $conf.extended} +{if $fields._marker}
    {$lang.marker}: @@ -51,7 +39,6 @@
    -
    {/if}