HomeCode
Diffusion Zed 8251a47b481e

Avoid to pass null to MySQLiEngine::escape

Description

Avoid to pass null to MySQLiEngine::escape

Summary:
Several fields in User, Perso and ContentZone are strings,
still undefined when trying to escape them.

As MySQLiEngine::escape accepts strings and not null values,
this change initializes those properties to an empty string.

Fixes T118.
Fixes T119.
Fixes T120.

Test Plan:

  • create a new account from an invite
  • create a character
  • awakens in an unfamiliar place

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T120, T119, T118

Differential Revision: https://code.zed.dereckson.be/D27

Details

Provenance
derecksonAuthored on Jun 11 2023, 19:19
Reviewer
dereckson
Differential Revision
Restricted Differential Revision
Parents
rZEDb72199820881: Only ignore content/ folder, not includes/content/
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task
Restricted Maniphest Task
Restricted Maniphest Task

Event Timeline

dereckson added tasks: Restricted Maniphest Task, Restricted Maniphest Task, Restricted Maniphest Task.
dereckson added an edge: Restricted Differential Revision.