Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-7017 now.

utf8_htmspecialchars passed by ref (fix completed in vcs)

In includes/utf/utf_tools.php the parameter for utf8_htmlspecialchars function is passed by reference.

Comments / History

Posted by Kellanved (Former Team Member) on Feb 22nd 2008, 11:40

And?

Posted by igorw (Development Team Member) on Feb 22nd 2008, 11:44

The normal htmlspecialchars function does not work that way. I don't see i real reason to pass by reference. It's a pain if you want to something like:
[code]$var = utf8_htmlspecialchars("[$prefix] $value");
Because you are forced to do:
[code]$var = utf8_htmlspecialchars($dummy = "[$prefix] $value");

It doesn't really make much sense to require that to me.

Changed ticket status from "New" to "Fix in progress"

Action performed by DavidMJ (Former Team Member) on Feb 22nd 2008, 19:35

Posted by DavidMJ (Former Team Member) on Feb 22nd 2008, 19:35

I have a better reason, the function does not modify the argument itself. Simple fix...

Assigned ticket to user "DavidMJ"

Action performed by DavidMJ (Former Team Member) on Feb 22nd 2008, 19:35

Linked ticket with changeset: r8510

Action performed by DavidMJ (Former Team Member) on Apr 20th 2008, 05:16

Changed ticket status from "Fix in progress" to "Fix completed in SVN"

Action performed by DavidMJ (Former Team Member) on Apr 20th 2008, 05:16

Ticket details

Related SVN changesets