[wp-trac] [WordPress Trac] #11903: insert_with_markers is not threadsafe

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 15 06:27:47 UTC 2010


#11903: insert_with_markers is not threadsafe
--------------------------+-------------------------------------------------
 Reporter:  strings28     |       Owner:  ryan              
     Type:  defect (bug)  |      Status:  new               
 Priority:  normal        |   Milestone:  Unassigned        
Component:  Permalinks    |     Version:  2.9               
 Severity:  major         |    Keywords:  .htaccess, threads
--------------------------+-------------------------------------------------
 From wp-admin/includes/misc.php the function insert_with_markers may be
 called multiple times on a busy server and if the htaccess is already in
 the process of being written it is possible that two PHP threads could
 attempt to write to it causing corruption such as the following:


 # BEGIN WordPress
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>

 # END WordPress
 s

 Notice the dangling 's' at the last line

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


More information about the wp-trac mailing list