OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

With "magic quotes" disabled, why does PHP/WordPress continue to auto-escape my POST data?

  • Thread starter Thread starter rinogo
  • Start date Start date
R

rinogo

Guest
It's a simple question with a strangely elusive answer.

get_magic_quotes_gpc() reports 0. I repeat, magic quotes are off. Magic quotes appear to have been disabled in php.ini (not at runtime).

Nevertheless, all POST data including single quotes (') is escaped when accessed in PHP. What could be causing this?



While preparing a test case, I discovered the general origin of the problem. We're bootstrapping WordPress as our application integrates with a WordPress multisite installation. When I disable the WordPress bootstrapping, the auto-escaping is disabled. Where may WordPress' auto-escape code be located?
<p>It's a simple question with a strangely elusive answer.</p>

<p><code>get_magic_quotes_gpc()</code> reports 0. I repeat, magic quotes are off. Magic quotes appear to have been disabled in <code>php.ini</code> (not at runtime).</p>

<p>Nevertheless, all POST data including single quotes (') is escaped when accessed in PHP. What could be causing this?</p>

<hr>

<p>While preparing a test case, I discovered the general origin of the problem. We're bootstrapping WordPress as our application integrates with a WordPress multisite installation. When I disable the WordPress bootstrapping, the auto-escaping is disabled. Where may WordPress' auto-escape code be located?</p>
Continue reading...
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top