Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $25.00
Net Balance: $23.57
Left to go: $76.43

Donations
Anonymous ($15)Jun-14
Anonymous ($10)Jun-10

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse admin AntiHarvesting AntiMalUser AntiSpam API Beats billige black block Blocking Blocks blue Captcha cell Christmas chronolabs content Conversion demo Dictionary docek download Dresses editor evden eve facebook floor forms framework free herre Honeypot Human Hymn instant-zero IP jQuery kantor lamps Load log logger mobile module modules Monster mulberry MyAlbum-p newbb news online PageRank pandora Party Permissions pink Plugin Plunger pollos portal Prevention profile project Protector publisher REST Rights rmcommon Room sale security Server site Smarty Spam stem Studio tag tags tdmcreate template Theme themes Transaction User userlog website Whitepaper Wishcraft XFriendica xoops Xortify ZendFramework

New Users

Registering user

# 136109

LewisBrub

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2005/8/7 21:26 Stripslashes in Custom Block
I've just upgraded to XOOPS 2.2, and I'm having trouble with slashes in a custom block.

I have a simple block that displays some welcome text. But the text has slashes before every apostrophe -- single-quote. My best guess here is that the text is not being stripslashed after it is read. The slashes are in the database fields, but they aren't being stripped out before display.

Has anybody else seen this?

Thanks

James

Top

thoughtscape
Just popping in
Just popping in
Joined:
2005/7/14 12:09
From Cincinnati, OH
Group:
Registered Users
Posts: 15
(Show More) (Show Less)


#2 Posted on: 2005/8/7 21:44 Re: Stripslashes in Custom Block
I encountered that problem after upgrading from 2.0.13 to 2.2. Some of the text in a custom block wasn't being displayed, and I saw that backslashes had been added, resulting in invalid PHP.

I edited the block, through the admin page, to remove the backslashes, and that fixed the problem.

I haven't investigated to see why it happened.

Top

Dave_L
XOOPS is my life!
XOOPS is my life!
Joined:
2003/11/7 15:34
From Virginia, USA
Group:
Registered Users
Posts: 2267
(Show More) (Show Less)


#3 Posted on: 2005/8/7 21:54 Re: Stripslashes in Custom Block
Unfortunately, the slashes don't show up in the Admin page. I've even tried deleting the block and recreating it. Whenever I have a single quote in the text, there are backslashes and single quotes in the display.

Thanks for the suggestion though.

Top

thoughtscape
Just popping in
Just popping in
Joined:
2005/7/14 12:09
From Cincinnati, OH
Group:
Registered Users
Posts: 15
(Show More) (Show Less)


#4 Posted on: 2005/8/9 22:42 Re: Stripslashes in Custom Block
I just upgraded to 2.2.1 and that fixed the problem.

Top

thoughtscape
Just popping in
Just popping in
Joined:
2005/7/14 12:09
From Cincinnati, OH
Group:
Registered Users
Posts: 15
(Show More) (Show Less)


#5 Posted on: 2010/7/3 15:33 Re: Stripslashes in Custom Block
I'm having a similar issue in 2.4.4. It first manifested in "Lawsuit" by Chronolabs, but I'm now seeing it in xnews, newbbex and ForumEx.

Top

par14h
Just popping in
Just popping in
Joined:
2010/2/23 19:18
From Noblesville, IN USA
Group:
Registered Users
Posts: 41
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]