Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wazum opened this issue Oct 9, 2018 · 2 comments

Comments

@wazum
Copy link

wazum commented Oct 9, 2018

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
Copy link
Author

wazum commented Oct 21, 2018

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

@digilist
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants