Fork me on GitHub
Subscribe 3

Ticket #1027 (fixed enhancement)

Change htmlspecialchars to pun_htmlspecialchars

  • Created: 2015-03-25 17:50:06
  • Reported by: chris98
  • Assigned to: quy
  • Milestone: 1.5.10
  • Component: code
  • Priority: normal

In login.php when resetting a password, htmlspecialchars is used instead of pun_htmlspecialchars:

$errors[] = $lang_login['No email match'].' '.htmlspecialchars($email).'.';

History

chris98 2015-03-25 17:55:55

  • Summary changed from Change htmlspecialcahrs to pun_htmlspecialchars` to Change htmlspecialcahrs to pun_htmlspecialchars.

chris98 2015-03-25 17:58:18

  • Summary changed from Change htmlspecialcahrs to pun_htmlspecialchars to Change htmlspecialchars to pun_htmlspecialchars.

Franz 2015-03-26 13:17:32

  • Milestone set to 1.5.9.

Thanks.

quy 2015-03-26 17:45:17

Commit 72a0918 to fluxbb 1.5-next

#1027: Change htmlspecialchars to pun_htmlspecialchars

Franz 2015-03-26 19:11:43

Commit 00eb41b to fluxbb 1.5-next

Merge pull request #142 from Quy/1027-login

#1027: Change htmlspecialchars to pun_htmlspecialchars

quy 2015-03-26 21:00:49

  • Owner set to quy.
  • Status changed from open to fixed.

chris98 2015-04-03 12:40:18

I've found another occurrence in header.php big_smile

// START SUBST - <pun_page>
$tpl_main = str_replace('<pun_page>', htmlspecialchars(basename($_SERVER['PHP_SELF'], '.php')), $tpl_main);
// END SUBST - <pun_page>

Franz 2015-04-03 13:31:06

Not sure whether that one is relevant, since we only need that method for UTF-8 encoded things.

chris98 2015-04-03 13:44:07

Ah ok - I just saw this and assumed you'd want it the same.

Franz 2015-11-07 20:01:23

  • Milestone changed from 1.5.9 to 1.5.10.

quy 2016-06-16 07:39:49

Commit c631439 to fluxbb master

#1027: Change htmlspecialchars to pun_htmlspecialchars