Skip to content

Commit

Permalink
bugfix js setTitle encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
xw2423 committed Nov 29, 2013
1 parent 7ebcdf6 commit b9af345
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/inc/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ protected function beforeRender(){
$tmp[] = '<a href="' . (empty($v['url'])?'javascript:void(0)':($this->base.$v['url'])) . '">' . $v['text'] . '</a>';
}
$tmp = join('&ensp;>>&ensp;', $tmp);
$et = str_replace(array("\\", "'"), array("\\\\", "\'"), htmlspecialchars_decode($title));
$this->jsr[] = <<<EOT
$('#notice_nav').html('{$tmp}');$.setTitle('{$title}');
$('#notice_nav').html('{$tmp}');$.setTitle('{$et}');
EOT;

$syn = c('ubb.syntax');
Expand Down

0 comments on commit b9af345

Please sign in to comment.