[wp-trac] [WordPress Trac] #34920: Failing to save post if this sepcific code snippit is in it

WordPress Trac noreply at wordpress.org
Tue Dec 8 20:00:35 UTC 2015


#34920: Failing to save post if this sepcific code snippit is in it
------------------------------+-----------------------------
 Reporter:  MusicalCreeper01  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  4.4
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 For the last week I was unable to post on my site http://icodethings.info,
 every time I hit save draft or publish, the "wp-admin/post.php" page just
 said "page not found", and wouldn't save the post.

 I thought it might have been a temporary issue with my x10 host, so I
 waited a couple days and tried again, same issue. After much debugging,
 disabling plugins, changing themes, etc, I realized the issue was only
 with that one post, or more specifically, with one port of that post I was
 trying to save.

 I had saved the part of the post that wasn't saving on wordpress, in an
 OpenOffice document to preserve formatting so I could add it into the post
 when my site was working again, now I found out that this piece of code in
 the post was causing the issue:

 {{{
 int main() {
     SetupOLED();
     while (1) {
         DrawOLED();
     }
     return 0;
 }
 }}}

 If I remove that code snippet, or more specifically, the main(){} part,
 then I'm able to update my post fine.

 I'm guessing something either isn't being escaped correctly, or there is
 some kind of php injection happening here.

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


More information about the wp-trac mailing list