1
Pnooka
TextSanitizer and single quotes
  • 2004/7/18 5:38

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


This is bugging me, really.
$myts =& MyTextSanitizer::getInstance();
I like to use a single quote on my site's name, but it keeps adding this annoying \' to it. Why is that, and can it be removed somehow. I did a search in the forum, but didn't fins anything that could explain it for me.

2
phppp
Re: TextSanitizer and single quotes
  • 2004/7/19 19:33

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


did you use $myts->stripslashes before diplaying it?

3
Casey
Re: TextSanitizer and single quotes
  • 2004/7/20 23:58

  • Casey

  • Just popping in

  • Posts: 14

  • Since: 2004/7/18



Quote:

phppp wrote:
did you use $myts->stripslashes before diplaying it?


I had this exact same problem. I think the problem is that when the title is written out to the page, no one runs stripslashes. (Put an apostrophe in your page's title and you'll see). Seems like a simple easy to fix bug in 2.0.

4
skalpa
Re: TextSanitizer and single quotes
  • 2004/7/21 4:58

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


It's a bug in 2.0.7 (not the TS class, but the configitem one).
Get the fixed kernel/configitem.php, replace your actual file, and you should be able to remove the \\ .

skalpa.>

5
gstarrett
Re: TextSanitizer and single quotes
  • 2004/7/25 7:06

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


I had a related problem, but mine was only partially resolved by this fix.

I am looking at the preferences for XoopsGallery, and when I am entering a Win32 path, it always doubles the number of \'s that were there when I submit. I type "c:\foo" and after submitting it becomes "c:\\foo" then again and it goes to "c:\\\\foo" and so on.

After applying the patch, now it only double's it the first time so I always have "c:\\foo" after submitting any number of times.

Here's the declaration for the preference from the xoops_version.php:
$modversion['config'][1]['name'] = 'pnmDir';
$modversion['config'][1]['title'] = '_MI_GALLERY_PNMDIR';
$modversion['config'][1]['description'] = '_MI_GALLERY_PNMDIRDSC';
$modversion['config'][1]['formtype'] = 'textbox';
$modversion['config'][1]['valuetype'] = 'text';
$modversion['config'][1]['default'] = '/usr/bin';


6
Pnooka
Re: TextSanitizer and single quotes
  • 2004/7/25 8:11

  • Pnooka

  • Just popping in

  • Posts: 68

  • Since: 2004/7/16


Thanks a million. It works as it should now.

Login

Who's Online

143 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits