From 84dfcb203f5196b2fb29ce430967075fb087af4f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 3 Mar 2012 19:33:26 +0000 Subject: [PATCH] fixed XSS --- lam/templates/3rdParty/pla/htdocs/add_value_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/3rdParty/pla/htdocs/add_value_form.php b/lam/templates/3rdParty/pla/htdocs/add_value_form.php index 02d5fe83..66d9757d 100644 --- a/lam/templates/3rdParty/pla/htdocs/add_value_form.php +++ b/lam/templates/3rdParty/pla/htdocs/add_value_form.php @@ -34,7 +34,7 @@ if ($request['attribute']->isReadOnly()) # Render the form if (! strcasecmp($request['attr'],'objectclass') || get_request('meth','REQUEST') != 'ajax') { # Render the form. - $request['page']->drawTitle(sprintf(_('Add new %s value to %s'),$request['attr'],get_rdn($request['dn']))); + $request['page']->drawTitle(sprintf(_('Add new %s value to %s'), htmlspecialchars($request['attr']),htmlspecialchars(get_rdn($request['dn'])))); $request['page']->drawSubTitle(); if (! strcasecmp($request['attr'],'objectclass')) {