SnakeDumper icon indicating copy to clipboard operation
SnakeDumper copied to clipboard

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

Open wazum opened this issue 6 years ago • 2 comments

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 avatar Oct 09 '18 06:10 wazum

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

wazum avatar Oct 21 '18 10:10 wazum

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?

digilist avatar Oct 22 '18 16:10 digilist