[wp-trac] [WordPress Trac] #18142: Wordpress should explicitly set the permissions on generated .htaccess files

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 16 17:31:17 UTC 2011


#18142: Wordpress should explicitly set the permissions on generated .htaccess
files
--------------------------+-----------------------------
 Reporter:  conall        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:
 Severity:  trivial       |   Keywords:
--------------------------+-----------------------------
 After installing Wordpress 3.2 into a newly setup vhost, I let Wordpress
 generate a .htaccess file with mod_rewrite rules for permalinks.


 The vhost immediately served 500s since the newly created .htaccess file
 was set to only be read/write by the vhost owner and the webserver process
 could not read it at all.


 Wordpress should not rely on the umask settings of it's install directory
 and should explicitly chmod a generated .htaccess file immediately after
 writing to the file.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18142>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list