PEAK XOOPS - Re: How about starting security/development forum in englishin japanese

Re: How about starting security/development forum

List posts in the topic

none Re: How about starting security/development forum

msg# 1.1.1.1
depth:
3
Previous post - Next post | Parent - Children.1 | Posted on 2006/11/21 5:11 | Last modified
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:

stefan88 wrotes:
Well, I have an edit field, where user enters url.

I do " $myts->addSlashes..." before saving into database and "$myts->htmlSpecialChars..." before display.

Is that ok and what else should I do?

- "user enters url"
You should know some URL's from javascript : or about :

- $myts->addSlashes
You should know $myts->addSlashes behave curiously.
Under the environment magic_quotes_gpc=on, it never escapes slashes.

POST,GET -> ($myts->stripSlashes) -> raw data

raw data -> (addslashes or mysql_*_escape instead of $myts->addSlashes) -> string for MySQL

This is the right way.
Votes:9 Average:8.89

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!