svn: /phpdoc/en/trunk/reference/strings/functions/ addslashes.xml stripslashes.xml
| From: | Jakub Vrana | Date: | Tue, 27 Mar 2012 18:59:52 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ addslashes.xml stripslashes.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9955@lists.php.net to get a copy of this message | ||
vrana Tue, 27 Mar 2012 18:59:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324587
Log:
magic_quotes_gpc is not on by default anymore
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/addslashes.xml
U phpdoc/en/trunk/reference/strings/functions/stripslashes.xml
Modified: phpdoc/en/trunk/reference/strings/functions/addslashes.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/addslashes.xml 2012-03-27 18:58:23 UTC (rev 324586)
+++ phpdoc/en/trunk/reference/strings/functions/addslashes.xml 2012-03-27 18:59:52 UTC (rev 324587)
@@ -37,8 +37,8 @@
</para>
<para>
The PHP directive <link linkend="ini.magic-quotes-gpc">
- magic_quotes_gpc</link> is <literal>on</literal> by default, and it
- essentially runs <function>addslashes</function> on all GET, POST,
+ magic_quotes_gpc</link> was <literal>on</literal> by default before PHP 5.4,
and it
+ essentially ran <function>addslashes</function> on all GET, POST,
and COOKIE data. Do not use <function>addslashes</function> on
strings that have already been escaped with
<link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> as
you'll
Modified: phpdoc/en/trunk/reference/strings/functions/stripslashes.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/stripslashes.xml 2012-03-27 18:58:23 UTC (rev
324586)
+++ phpdoc/en/trunk/reference/strings/functions/stripslashes.xml 2012-03-27 18:59:52 UTC (rev
324587)
@@ -25,7 +25,7 @@
<para>
An example use of <function>stripslashes</function> is when the PHP
directive <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>
- is <literal>on</literal> (it's on by default), and you aren't inserting
+ is <literal>on</literal> (it was on by default before PHP 5.4), and you aren't
inserting
this data into a place (such as a database) that requires escaping.
For example, if you're simply outputting data straight from an HTML form.
</para>