Problem/Motivation

Revisiting this as a public follow up. There are a lot of references to file_save_htaccess(), a method which is now long deprecated.

https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/syste... and a few more lines below.

See https://www.drupal.org/node/2940126

Proposed resolution

Update phpdoc comment and other references

Remaining tasks

MR

Background information

People who participated in the private security issue and deserve credit: quicksketch, BarisW, webchick, effulgentsia, xjm, berdir, wim leers, amateescu, plach, alexpott, catch, tim.plunkett, larowlan, dawehner, gábor hojtsy, tedbow, GuyPaddock, cmlara, mondrake, longwave, kim.pepper, fabianx, jenlampton, benjifisher, poker10, drumm, bramdriesen

Issue fork drupal-3495778

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bramdriesen created an issue. See original summary.

bramdriesen’s picture

Issue summary: View changes

bramdriesen’s picture

Issue summary: View changes
bramdriesen’s picture

Status: Active » Needs review

bramdriesen’s picture

That was messy 😅 should be ok now!

bramdriesen’s picture

Issue summary: View changes
smustgrave’s picture

Version: 11.0.x-dev » 11.x-dev
Status: Needs review » Reviewed & tested by the community

Seems pretty straight forward LGTM.

quietone’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for updating the docs. I think we should fix all occurrences of file_save_htaccess in this one issue.

$ git grep file_save_htaccess
composer/Plugin/VendorHardening/FileSecurity.php:   * @see file_save_htaccess()
bramdriesen’s picture

Status: Needs work » Needs review

Fixed the @see to the relevant method.

bramdriesen’s picture

Probably needs a small issue summary/title update

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Feedback appears to be addressed.

quietone’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs title update

Comment #13 suggests more work and I agree the title should change.

bramdriesen’s picture

Title: Update phpdoc in FileSaveHtaccessLoggingTest » Update all references to file_save_htaccess()
Issue summary: View changes
Status: Needs work » Reviewed & tested by the community
Issue tags: -Needs title update

Updated IS and title, will set it back at RTBC as nothing changed in the code :-)

quietone credited alexpott.

quietone credited BarisW.

quietone credited berdir.

quietone credited catch.

quietone credited cmlara.

quietone credited dawehner.

quietone credited drumm.

quietone credited fabianx.

quietone credited larowlan.

quietone credited longwave.

quietone credited mondrake.

quietone credited plach.

quietone credited poker10.

quietone credited tedbow.

quietone credited webchick.

quietone credited xjm.

quietone’s picture

quietone’s picture

  • quietone committed 798ad9e4 on 11.x
    Issue #3495778 by bramdriesen, smustgrave, cmlara, dawehner, drumm,...
quietone’s picture

Status: Reviewed & tested by the community » Fixed

Committed 798ad9e and pushed to 11.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.