@tsteur opened this Pull Request on December 4th 2022 Member

Had the other day close to 80 fatal errors from a scanner where language was not a string which resulted in an error below

preg_match(): Argument #2 ($subject) must be of type string, array given
Error: {"message":"preg_match(): Argument #2 ($subject) must be of type string, array given","file":"core\/Filesystem.php","line":79,"request_id":"96ae7","backtrace":" on core\/Filesystem.php(79)\n#0 core\/Filesystem.php(79): preg_match('\/(^[a-zA-Z0-9]+...', Array)\n#1 plugins\/LanguagesManager\/API.php(48): Piwik\Filesystem::isValidFilename(Array)\n#2 plugins\/CoreAdminHome\/OptOutManager.php(560):

Example URL: /index.php?action=optOut&backgroundColor=&fontColor=333333&fontFamily=Arial&fontSize=16px&language%5B0%5D=%3Dconvert%28int%2Csys.fn_sqlvarbasetostr%28HashBytes%28%27MD5%27%2C%271476824053%27%29%29%29and+3+in+&language%5B1%5D=3&module=CoreAdminHome

Review

This Pull Request was closed on December 5th 2022
Powered by GitHub Issue Mirror