[wp-trac] [WordPress Trac] #37132: tinymce uses php open tag which can crash visual editor when server is set to parse JS files for PHP

WordPress Trac noreply at wordpress.org
Mon Jun 20 18:39:18 UTC 2016


#37132: tinymce uses php open tag which can crash visual editor when server is set
to parse JS files for PHP
--------------------------+-----------------------------
 Reporter:  oldbucsfan    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  4.5.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When apache is set to parse .js files for PHP (needed in some cases), it
 causes timymce.min.js to return a 500 error. This is because one part of
 the file uses a php open tag "<?":

 pi:function(e,t){t?r.push("<?",e,"
 ",s(t),"?>"):r.push("<?",e,"?>"),i&&r.push("\n")}

 It would be best if this part of the file was written so that it would not
 return a 500 error if .js files are parsed for PHP. A simple fix:

 pi:function(e,t){t?r.push("<"+"?",e,"
 ",s(t),"?"+">"):r.push("<"+"?",e,"?"+">"),i&&r.push("\n")}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37132>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list