-
Website
http://technosailor.com -
Original page
http://technosailor.com/2006/02/26/wordpress-201-posting-bug/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
AndyBeard
7 comments · 4 points
-
Rob
12 comments · 168 points
-
Lucretia (GeekMommy) Pruitt
4 comments · 16 points
-
chrisbachmann
5 comments · 1 points
-
chrispian
4 comments · 1 points
-
-
Popular Threads
Im getting a 500 - Internal Server Error (a wordpress one, not a real apache one). Only effects me when I try and post an entry with code in it.
Any ideas??
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''schroeder\') as score FROM wp_posts where id=567' at line 1]
SELECT MATCH(post_content, post_title) against ('schroeder\') as score FROM wp_posts where id=567;
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''don\') as score FROM wp_posts where id=567' at line 1]
SELECT MATCH(post_content, post_title) against ('don\') as score FROM wp_posts where id=567;
The problem was fixed in 2.0.2 and the patch is not required. If you have installed WP 2.0.2 and ran the upgrade script, what version is your wp-admin reporting???
I am using 2.0.2. I reuploaded the unmodified functions.php. Anyway, I have tracked down the culprit. It seems that the host that my blog is on is using mod_security.
The post that triggers the behavior is very long and contains what would be interpreted as a shell scripting attack by mod_security. I found out that it gets triggered only if my post contained the word 'curl' in it. Since I am on a virtual hosted environment, I cannot turn off mod_security or even change the rules it uses.
Here is the post http://abing.gotdns.com/2006/03/14/php4-and-php...
The work-around I have found is to wrap the words 'curl' with tags.
The work-around I have found is to wrap the words 'curl' with SPAN tags.
No, I don't think so. I do have PHP Markdown installed. But since the words 'curl' is usually found in <code> or <pre> markup on my post, I was not able to use Markdown to format text with 'curl' in them. Markdown would use HTML entities for anything that is formatted as code (indented by 4 spaces). So I had to resort to using HTML tags.
I find this really ridculous, what is wrong with the word curl? Any significant issue to technical or program problem?