logo

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
maintenance mode, text encoding

I notice on Jakes eocms page, in maintenance mode the text is NOT escaped, displaying \' in the description..

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: maintenance mode, text encoding

Yea i noticed it was like that with the news as well :S On my localhost it doesnt do that and it might be an SQLite problem?

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: maintenance mode, text encoding

are you sure its not a MAGICQUOTES related issue (which needs to be checked per server before saving text from a form)

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: maintenance mode, text encoding

are you sure its not a MAGICQUOTES related issue (which needs to be checked per server before saving text from a form)

I could have sworn i had a check for the use of addslashes... OR i might have removed it when i added the automatic encoding of ' and "... hmmmmmm

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: maintenance mode, text encoding

Code:
if (!get_magic_quotes_gpc()) {
          //checks to see if magic quotes is off, only lazy people have it on :P
          //if it isnt we use addslashes
          $data_to_sanitize = addslashes($data_to_sanitize);
}

definitely checks for magic_quotes...

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: maintenance mode, text encoding

is it not being de-slashed when its taken from the db then

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: maintenance mode, text encoding

Well theres stripslashes($body) in the theme-functions.php, the output() function so i dont know why it would do that....

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: maintenance mode, text encoding

There's also slashes in the title of someone site. For instance the illusive James (:D:D:D:D:D:D:D:D:D)'s Site is Called 'James' Site' but it's displayed as 'James' Site'

Seen a bug? Report it!
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: maintenance mode, text encoding

can this be tested again please, the maintenance mode with slashed text, I'll test the site name issue asap..

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: maintenance mode, text encoding

ah i think i know why, only $body is stripslashed, $title isnt and nor is $head, and nothing is stripped in the maintenance output function...

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: maintenance mode, text encoding

Sorry, can I draw your attention back to site titles. If there is a ' in the title, there is a backslash displayed in front of it. That's not made clear in an earlier post.

Seen a bug? Report it!
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: maintenance mode, text encoding

Fixed

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: maintenance mode, text encoding

Locking

Seen a bug? Report it!

Jump to:


0.19 seconds Queries: 14