diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-01-11 23:56:36 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-01-11 23:56:36 +0000 |
commit | c75d7186d7a9b1d6f2e44d5deea3447c0fba11b4 (patch) | |
tree | 87ee26ed1e9fd166012c7b8ca4410056a51e9362 /include/functions.inc.php | |
parent | a512c69225403aa0d6b926f757ffe23a3ff97b1f (diff) |
- bug 471: apostrophe lors de l'ajout d'un tag (different behavior depending on
magic_quotes_gpc)
- metadata synchronization correction: iptc keywords were MySql escaped 2
times when synchronizing from site manager, but only once when synchronizing
one image
git-svn-id: http://piwigo.org/svn/trunk@1717 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 3a3ee5259..de69a252c 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -515,40 +515,6 @@ function format_date($date, $type = 'us', $show_time = false) return $formated_date; } -function pwg_stripslashes($value) -{ - if (get_magic_quotes_gpc()) - { - $value = stripslashes($value); - } - return $value; -} - -function pwg_addslashes($value) -{ - if (!get_magic_quotes_gpc()) - { - $value = addslashes($value); - } - return $value; -} - -function pwg_quotemeta($value) -{ - if (get_magic_quotes_gpc()) { - $value = stripslashes($value); - } - if (function_exists('mysql_real_escape_string')) - { - $value = mysql_real_escape_string($value); - } - else - { - $value = mysql_escape_string($value); - } - return $value; -} - function pwg_query($query) { global $conf,$page,$debug,$t2; |