Page MenuHomePhabricator

PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in CoreParserFunctions.php on line 212
Closed, ResolvedPublic

Description

PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/apache/common-local/php-1.23wmf9/includes/parser/CoreParserFunctions.php on line 212


Version: 1.23.0
Severity: normal

Details

Reference
bz59881

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:33 AM
bzimport set Reference to bz59881.

Marking easy. localurle just needs to check the return type of self::urlFunction in the case where the title given is invalid.

This can also be happen for fullurle (line 220)

See gerrit 104375

Change 107017 had a related patch set uploaded by 01tonythomas:
Chagned return value of self::urlFunction from array to string

https://gerrit.wikimedia.org/r/107017

Change 107017 merged by jenkins-bot:
Check for CoreParserFunction::urlFunction from array to boolean and return values accordingly to htmlspecialchars()

https://gerrit.wikimedia.org/r/107017