Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

stripslash upgrade

Asked Modified Viewed 1,301 times
A
amra
A
amra 10
[m]
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Junior Member

what about to upgrade the addslash function in maincore?

// stripslash function, add correct number of slashes depending on quotes_gpc
function addslash($text) {
[color=red]  if( function_exists( "mysql_real_escape_string" ) ){
    $text = mysql_real_escape_string($text);[/color]
    } else {
   if (!QUOTES_GPC) {//php < 4.3.0 use addslashes
      $text = addslashes(addslashes($text));
   } else {
      $text = addslashes($text);
   }
   }
   return $text;
}
0 replies

1 post

I
it-norden
I
Find it.
Think...
Fix it!
  • Senior Member, joined since
  • Contributed 240 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

Good question. armra have you thought about joining crew ?
0 replies
— 10 months earlier —

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet