|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-28 12:51 UTC] sniper@php.net
[2005-05-01 00:01 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 00:00:01 2025 UTC |
Description: ------------ I have tried ini_set ('magic_quotes_gpc', 0); and ini_set ('magic_quotes_gpc', 'Off'); and various others, but I still get those stupid backslashes. Reproduce code: --------------- ini_set ('magic_quotes_gpc', 0); echo '<pre>'. get_array_val ('x', $_POST) . '</pre>'; echo "<form action='/test2.php' method='post'> <input type='text' name='x' value=''' /> <input type='submit' /> </form>"; Expected result: ---------------- Upon submitting the form, you should see an apostrophe. Actual result: -------------- You see a backslash followed by an apostrophe.