Changeset 1717 for trunk/include


Ignore:
Timestamp:
Jan 12, 2007, 12:56:36 AM (18 years ago)
Author:
rvelices
Message:
  • 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r1699 r1717  
    516516}
    517517
    518 function pwg_stripslashes($value)
    519 {
    520   if (get_magic_quotes_gpc())
    521   {
    522     $value = stripslashes($value);
    523   }
    524   return $value;
    525 }
    526 
    527 function pwg_addslashes($value)
    528 {
    529   if (!get_magic_quotes_gpc())
    530   {
    531     $value = addslashes($value);
    532   }
    533   return $value;
    534 }
    535 
    536 function pwg_quotemeta($value)
    537 {
    538   if (get_magic_quotes_gpc()) {
    539     $value = stripslashes($value);
    540   }
    541   if (function_exists('mysql_real_escape_string'))
    542   {
    543     $value = mysql_real_escape_string($value);
    544   }
    545   else
    546   {
    547     $value = mysql_escape_string($value);
    548   }
    549   return $value;
    550 }
    551 
    552518function pwg_query($query)
    553519{
Note: See TracChangeset for help on using the changeset viewer.