> Hi all I am testing a small change. > If you name a project, group or whatever with a -- in it > you will get a db error on searches by that group or project. > Due to splitting the db id at the wrong point. > > I simply replaced every instance of > split /--/ > With > split /--([^--]+)$/ > > And it seems to be working well. > > Interestingly Ledgersmb actually strips extra ----'s from customers names > Would not be good if you had to have -- in a name this could probably be > eliminated. > > Cheers & > Happy September > Turtle > >
Here is a picket fence I used to go through bin/*.pl and LedgerSMB/*.pm sed -i 's|split /--/| split /--\(\[\^--\]\+\)\$/ |g' -Turtle ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ledger-smb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
