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

Prevent diagnostic output from being cut off on cli #12019

Merged
merged 1 commit into from Sep 11, 2017
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Sep 10, 2017

output has been done using OutputInterface::OUTPUT_PLAIN. This call an strip_tags internally.
Problem with diagnostics output is, that at tries to print

--> Please delete these directories to prevent errors. <--

strip_tags cuts it of at <-- as it's detected as comment/tag.

The output now uses OutputInterface::OUTPUT_NORMAL, which doesn't do a strip_tags. Instead the tag removal is done manually using a preg_replace.

fixes #11789

@sgiehl sgiehl added Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Sep 10, 2017
@sgiehl sgiehl added this to the 3.2.0 milestone Sep 10, 2017
@sgiehl sgiehl merged commit e67b23f into 3.x-dev Sep 11, 2017
@sgiehl sgiehl deleted the fixdiagnosticcli branch September 11, 2017 13:24
@mattab mattab modified the milestones: 3.2.0, 3.1.1 Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running the system check in the console may not show all of the information
3 participants