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

Merge up from 4 to 5 #10651

Merged

Conversation

maxime-rainville
Copy link
Contributor

Just did a merge up from the 4 branch to the 5 branch.

Normally I would just push directly to the branch, but there's enough merge conflicts to resolve that it's probably worth doing an actual peer review.

The following files had conflicts.

        both modified:   src/Control/HTTPResponse.php
        deleted by us:   src/View/Parsers/HTML4Value.php
        both modified:   src/View/SSViewer_DataPresenter.php
        both modified:   src/View/Shortcodes/EmbedShortcodeProvider.php
        deleted by us:   tests/php/View/Parsers/HTML4ValueTest.php

emteknetnz and others added 23 commits August 23, 2022 15:36
….11/cve-2022-38724-embed-shortcode

Restrict embed shortcode attributes
* ENH: saveInto() new extension points.
…/deprecate-html5

API Deprecate HTML4Value
/**
* Sanitise header values to avoid possible XSS vectors
*/
private function sanitiseHeader(string $value): string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is new from 4 and was conflicting with the strongly typed parameters of redirect in 5

Copy link
Contributor Author

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecation notice in HTML4Value and HTML4ValueTest were conflicting with the removal of those files in 5.

Copy link
Contributor Author

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both Guy and Chris updated src/View/SSViewer_DataPresenter.php with very similar fixes.

@@ -16,6 +16,7 @@
use SilverStripe\View\Parsers\ShortcodeHandler;
use SilverStripe\View\Parsers\ShortcodeParser;
use SilverStripe\Control\Director;
use SilverStripe\Core\Config\Configurable;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a use use SilverStripe\Dev\Deprecation; statement here that was causing a conflict.

@GuySartorelli
Copy link
Member

GuySartorelli commented Jan 18, 2023

You mention src/View/SSViewer_DataPresenter.php but I don't see that here?
Edit: The incoming changes were rejected, so it doesn't show as a change in the PR.

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got the same results when doing a local merge up so this looks good to me. For what it's worth, the conflicts were very small, I'd have been comfortable with that being merged and pushed without a PR.

@GuySartorelli GuySartorelli merged commit a8c374b into silverstripe:5 Jan 18, 2023
@GuySartorelli GuySartorelli deleted the pulls/5/merge-up-from-4 branch January 18, 2023 20:46
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

Successfully merging this pull request may close these issues.

6 participants