[wp-trac] [WordPress Trac] #10903: Plugin editor removes valid backslashes

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 7 21:30:24 UTC 2009


#10903: Plugin editor removes valid backslashes
----------------------------+-----------------------------------------------
 Reporter:  takayukister    |       Owner:             
     Type:  defect (bug)    |      Status:  new        
 Priority:  normal          |   Milestone:  2.9        
Component:  Administration  |     Version:  2.9        
 Severity:  normal          |    Keywords:  needs-patch
----------------------------+-----------------------------------------------
Changes (by dwright):

 * cc: david_v_wright@… (added)


Comment:

 I cannot reproduce this in 2.9 revision 12155

 I am using firefox (3.5) on linux, database is localhost, utf8

 performed steps:[[BR]]

 * chmod 777 wp-content/plugins/hello.php[[BR]]

 * Plugins -> Editor -> Editing hello.php[[BR]]

   added: [[BR]]

   // test \n\n\n [[BR]]

   $var = "\n";[[BR]]
 [[BR]]


 * diff with original file[[BR]]

 $ diff -Naur -w wp-content/plugins/hello.php.orig wp-
 content/plugins/hello.php    [[BR]]



 {{{
 --- wp-content/plugins/hello.php.orig   2009-11-07 13:34:18.000000000
 -0800
 +++ wp-content/plugins/hello.php        2009-11-07 13:38:03.000000000
 -0800
 @@ -12,6 +12,8 @@
  Version: 1.5.1
  Author URI: http://ma.tt/
  */
 +// test \n\n\n
 +$var = "\n";
 }}}


 Please give steps for how to recreate this bug

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10903#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list