Skip to content
Snippets Groups Projects
Verified Commit 798ad9e4 authored by quietone's avatar quietone
Browse files

Issue #3495778 by bramdriesen, smustgrave, cmlara, dawehner, drumm,...

Issue #3495778 by bramdriesen, smustgrave, cmlara, dawehner, drumm, effulgentsia, fabianx, catch, berdir, alexpott, amateescu, BarisW, benjifisher, gábor hojtsy, guypaddock, tim.plunkett, webchick, wim leers, quicksketch, xjm, tedbow, poker10, kim.pepper, jenlampton, larowlan, longwave, plach, mondrake: Update all references to file_save_htaccess()
parent 18071b07
No related branches found
No related tags found
4 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #400533 passed with warnings
Pipeline: drupal

#400557

    Pipeline: drupal

    #400554

      Pipeline: drupal

      #400553

        +4
        ...@@ -43,7 +43,7 @@ public static function writeHtaccess($directory, $deny_public_access = TRUE, $fo ...@@ -43,7 +43,7 @@ public static function writeHtaccess($directory, $deny_public_access = TRUE, $fo
        * @return string * @return string
        * The desired contents of the .htaccess file. * The desired contents of the .htaccess file.
        * *
        * @see file_save_htaccess() * @see \Drupal\Component\FileSecurity\FileSecurity::writeHtaccess()
        */ */
        public static function htaccessLines($deny_public_access = TRUE) { public static function htaccessLines($deny_public_access = TRUE) {
        $lines = static::htaccessPreventExecution(); $lines = static::htaccessPreventExecution();
        ......
        ...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
        use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
        /** /**
        * Tests the log message added by file_save_htaccess(). * Tests the log message added by the HtaccessWriter service.
        * *
        * @group File * @group File
        */ */
        ...@@ -25,15 +25,15 @@ class FileSaveHtaccessLoggingTest extends BrowserTestBase { ...@@ -25,15 +25,15 @@ class FileSaveHtaccessLoggingTest extends BrowserTestBase {
        protected $defaultTheme = 'stark'; protected $defaultTheme = 'stark';
        /** /**
        * Tests file_save_htaccess(). * Tests the HtaccessWriter service write functionality.
        */ */
        public function testHtaccessSave(): void { public function testHtaccessSave(): void {
        // Prepare test directories. // Prepare test directories.
        $private = $this->publicFilesDirectory . '/test/private'; $private = $this->publicFilesDirectory . '/test/private';
        // Verify that file_save_htaccess() returns FALSE if .htaccess cannot be // Verify that HtaccessWriter service returns FALSE if .htaccess cannot be
        // written and writes a correctly formatted message to the error log. Set // written and writes a correctly formatted message to the error log.
        // $private to TRUE so all possible .htaccess lines are written. // Set $private to TRUE so all possible .htaccess lines are written.
        /** @var \Drupal\Core\File\HtaccessWriterInterface $htaccess */ /** @var \Drupal\Core\File\HtaccessWriterInterface $htaccess */
        $htaccess = \Drupal::service('file.htaccess_writer'); $htaccess = \Drupal::service('file.htaccess_writer');
        $this->assertFalse($htaccess->write($private, TRUE)); $this->assertFalse($htaccess->write($private, TRUE));
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment