Rev 1203 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1203 | Rev 1219 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | 44 | ||
45 | /** |
45 | /** |
46 | * @return string |
46 | * @return string |
47 | */ |
47 | */ |
48 | public function getTitle(): string { |
48 | public function getTitle(): string { |
49 | return htmlentities($this->title ?? ''); |
49 | return $this->title ?? ''; |
50 | } |
50 | } |
51 | 51 | ||
52 | /** |
52 | /** |
53 | * @return string |
53 | * @return string |
54 | */ |
54 | */ |
Line 57... | Line 57... | ||
57 | } |
57 | } |
58 | /** |
58 | /** |
59 | * @return string |
59 | * @return string |
60 | */ |
60 | */ |
61 | public function getHtmlMessage(): string { |
61 | public function getHtmlMessage(): string { |
62 | return htmlentities($this->getMessage(), ENT_SUBSTITUTE); // ENT_SUBSTITUTE because ODBC drivers might return ANSI instead of UTF-8 stuff |
62 | return nl2br(htmlentities($this->getMessage(), ENT_SUBSTITUTE)); // ENT_SUBSTITUTE because ODBC drivers might return ANSI instead of UTF-8 stuff |
63 | } |
63 | } |
64 | 64 | ||
65 | } |
65 | } |
66 | 66 |