No score breaks Html::escape

Created on 12 June 2025, 25 days ago

Problem/Motivation

When Google is not able to determine a score NULL is saved in the logs. When trying to view the logs (with watchdog) an error is thrown because html::escape expects a string but got NULL.

Steps to reproduce

  • Somehow get an unscored validation from recaptcha
  • Try to view the watchdogs overview
  • Get an error

Proposed resolution

Always cast the score to a string. Incase the score is NULL it will be cast to an empty string which is fine when escaping the message.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇳🇱Netherlands adebruin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024