Page MenuHome

Fix T78823: Slash in custom property name does not work
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Sep 8 2020, 11:48 PM.

Details

Summary

Some characters: ', ", and \ can cause problems with RNA paths.
Instead of using more complicated handling to deal with those cases,
we can just prevent these characters from being used in custom property
names.

I'm not sure that this is the right place to do this check, or if it's the right
place to store the set of forbidden characters-- it seems maybe a bit too
localized? But it's also quite simple, which is nice.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Sep 8 2020, 11:48 PM
Hans Goudey (HooglyBoogly) created this revision.

I think it might make more sense to do this check in idp_try_read_name. We do other validity checking there as well.

  • Move check to idp_try_read_name

How is this?

LGTM, but better wait for the opinion of @Bastien Montagne (mont29) or @Campbell Barton (campbellbarton).

This new restriction should be documented in the release notes.

This revision is now accepted and ready to land.Sep 9 2020, 4:08 PM