Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Registry checks?

(1/1)

rickg22:
I'm posting this because of the "sidebar gone" bug and also the TODO which hasn't been fixed yet - and I don't know how to fix it either :oops:

Anyway, It seems that we don't have restrain checks for registry-stored variables. For example, the "sidebar gone" screwed up when (accidentally?) the value for a certain config dropped below zero. Shouldn't we do a check for min and max values of certain variables before loading them?

This reminds me of my PHP programming times: *NEVER* trust user input. And well, in this case it should be: "Don't trust the registry, it breaks too often :lol: ".

So, what do you think?

David Perfors:
min values should always be checked... indeed never trust ANY input :P

Navigation

[0] Message Index

Go to full version