digilist / SnakeDumper

Anonymize your database dumps.
MIT License
49 stars 27 forks source link

dumpOutput->writeln without OUTPUT_RAW escapes/removes certain characters (like '<') #15

Open wazum opened 6 years ago

wazum commented 6 years ago

Problem String in INSERT Query: '>>Elit Tortor Ridiculus Vehicula! (Lorem Ipsum)<<' dumpOutput->writeln outputs: '>>Elit Tortor Ridiculus Vehicula! (Lorem Ipsum)\'

Fix Use $this->dumpOutput->writeln($query, Output::OUTPUT_RAW); wherever applicable to prevent this faulty behaviour.

wazum commented 6 years ago

@digilist that's a really simple fix … any chance to get this into master or do you need a pull request?

digilist commented 6 years ago

Sure, I can take a look. Changing this to raw output does make sense, but I cannot reproduce your described error. Can you provide a fully working example or a unit test?