SQL keywords cause errors
-
I’ve found a couple of times now that if my Post includes the wrong word, then trying to Save or Preview the post generates a 404 error. I was able to go through, paragraph by paragraph, and find the specific word that was causing problems.
The first time, the word was “update”. When I changed it to “updat e”, it worked. Also, the word “updated” caused the posting to fail as well. It’s clearly the string “update” that caused the problem. I reworded the paragraph to use the word “revise” instead.
But it happened again. This time, the offending word was “from”. Not the first time the word occurred… but the *fourth* time. I got around it this time by replacing “from” with “fr0m” (with a zero). This has the additional advantage of preserving the condition for analysis! I tried an update today, and the same problem occurred.
My biggest concern is that “update” and “from” are SQL commands. I’m worried that WordPress is parsing user-entered text as SQL — which would open up the system to SQL injection attacks.
Specfics of my WP installation:
* Behind the scenes, I’m running on a subdirectory, using .htaccess to redirect. It took a little bit of poking to make it work, but other than this it’s fine. I can post my .htaccess file(s) if needed.* My only plugin is the official reCAPTCHA plugin.
* I upgraded to WP 2.9, and didn’t have this problem until after the upgrade. The blog is just a month old, though, so that’s not proof that the upgrade “broke” anything.
I don’t know the link policy of this board, so I’ll spell out the link to my site to view the example. It’s “Tequila Karaoke” dot com, and the post with “fr0m” is the one titled “The Goat: Expectations Exceeded”.
The topic ‘SQL keywords cause errors’ is closed to new replies.