mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
stripslashes is already aware of sybase
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238860 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6ddf596c98
commit
cb0931dfa5
1 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.29 $ -->
|
||||
<!-- $Revision: 1.30 $ -->
|
||||
<refentry xml:id="function.mysql-real-escape-string" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>mysql_real_escape_string</refname>
|
||||
|
@ -137,13 +137,8 @@ if (isset($_POST['product_name']) && isset($_POST['product_description']) && iss
|
|||
// Reverse magic_quotes_gpc/magic_quotes_sybase effects on those vars if ON.
|
||||
|
||||
if(get_magic_quotes_gpc()) {
|
||||
if(ini_get('magic_quotes_sybase')) {
|
||||
$product_name = str_replace("''", "'", $_POST['product_name']);
|
||||
$product_description = str_replace("''", "'", $_POST['product_description']);
|
||||
} else {
|
||||
$product_name = stripslashes($_POST['product_name']);
|
||||
$product_description = stripslashes($_POST['product_description']);
|
||||
}
|
||||
$product_name = stripslashes($_POST['product_name']);
|
||||
$product_description = stripslashes($_POST['product_description']);
|
||||
} else {
|
||||
$product_name = $_POST['product_name'];
|
||||
$product_description = $_POST['product_description'];
|
||||
|
|
Loading…
Reference in a new issue