Skip to content

Commit

Permalink
Fixed XSS problem in title tag
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgdf committed Jan 5, 2014
1 parent 77e2d49 commit e49f94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/main.inc.php
Expand Up @@ -968,7 +968,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$appli='Dolibarr';
if (!empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;

if ($title) print '<title>'.$appli.' - '.$title.'</title>';
if ($title) print '<title>'.$appli.' - '.htmlentities($title).'</title>';
else print "<title>".$appli."</title>";
print "\n";

Expand Down

0 comments on commit e49f94d

Please sign in to comment.