From 4d282675d3c34bc1a2b45b8e0f9822082644c60f Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Mon, 19 Mar 2007 02:43:44 +0000 Subject: [PATCH] Repair broken chmod statements. git-svn-id: http://htmlpurifier.org/svnroot@857 48356398-32a2-884e-a903-53898d9a118a --- xhtml-compiler/XHTMLCompiler/Page.php | 2 +- xhtml-compiler/htaccess.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xhtml-compiler/XHTMLCompiler/Page.php b/xhtml-compiler/XHTMLCompiler/Page.php index b7bdb06..9f31bce 100644 --- a/xhtml-compiler/XHTMLCompiler/Page.php +++ b/xhtml-compiler/XHTMLCompiler/Page.php @@ -170,7 +170,7 @@ class XHTMLCompiler_Page if (empty($contents)) return ''; // don't write, probably an error $contents .= ''; $this->cache->write($contents); - $this->cache->chmod(666); + $this->cache->chmod(0644); return $contents; } diff --git a/xhtml-compiler/htaccess.php b/xhtml-compiler/htaccess.php index 2aa28cd..300c69e 100644 --- a/xhtml-compiler/htaccess.php +++ b/xhtml-compiler/htaccess.php @@ -106,6 +106,6 @@ $new_contents[] = $identifier_end; $contents = str_replace($identifier_here, implode($new_contents, PHP_EOL), $contents); file_put_contents('.htaccess', $contents); -chmod('.htaccess', 666); +chmod('.htaccess', 0644); ?>

200: Okay

New .htaccess file successfully written \ No newline at end of file -- 2.11.4.GIT