Account Names
Derek Atkins
warlord at MIT.EDU
Mon Mar 23 14:34:37 EDT 2009
"Colin Scott" <gnucash at double-bars.net> writes:
> The problem with your solution is that "B/F Bal" is going to be clearly
> understood by anyone reading the accounts, whereas "B-F Bal" could mean
> pretty much anything. When programming this sort of stuff, sanity
> checking the input is absolutely fundamental, and this includes ensuring
> that the input contains only the permitted character set. If the
> character *is* accepted then it should just work, like any other
> character. Either way, the reported behaviour is a bug.
Which input do you sanitize?
The problem here is that you can create an account with a special
character that's perfectly legal and then later change your separator
character to that same character you used earlier.
Feel free to send in a patch that does a full recursive account name
character check prior to allowing the user to change the directory
separator...
> Colin
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list