PEAK XOOPS - text sanitizer question for myalbum in englishin japanese

text sanitizer question for myalbum

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2008/11/25 15:53
auxiv  ¸àĹ   Posts: 42
Hi G!

I noticed you have
$photo['description'] = $myts->stripSlashesGPC( $_POST["desc_text"] ) ;
for myalbum description posts.
Is There a way I can enforce more strict sanitizing? actually, I would like the description output to be completely text and no special characters (Such as smileys, external images, internal images etc etc).
I am using the dhtmlxoopseditor hack as the editor. (This editor is global) I figured I would either change the myalbum "submit" editor to just a text field, or sanitize the provided editor to achieve text and no special characters.

Thank You =)
Votes:6 Average:8.33
Previous post - Next post | Parent - No child | Posted on 2008/12/3 12:19
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi auxiv.

Quote:

I noticed you have
$photo['description'] = $myts->stripSlashesGPC( $_POST["desc_text"] ) ;
for myalbum description posts.
This code is unrelated with escaping HTML special characters.
(To avoid an affection from magic_quotes_gpc)

If you want to hack it, edit here, though I never recommend it.

line 117 of include/draw_functions.php
		'description' => $myts->displayTarea( $description , 0 1 , 1 , 1 , 1 , 1 , 1 ) ,
Votes:7 Average:4.29

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!