Magic Quotes And Add/strip Slashes To Be Deprecated »  Show posts from    to     

Icy Phoenix


Old Support Topics - Magic Quotes And Add/strip Slashes To Be Deprecated



Hans [ Wed 28 Dec, 2011 15:31 ]
Post subject: Magic Quotes And Add/strip Slashes To Be Deprecated
mort wrote: [View Post]
I believe your biggest problem is paths?

This is your url:

http://thenortherntundra.com/viewtopic.php?f=3&t=1

Icy Phoenix is/was not designed to run in the root of your domain, although it can be made to do so.

Can I suggest that you remove all Icy Phoenix stuff from the root of your domain and create a folder "forum" (Or whatever you wish it to be) and upload all of Icy Phoenix to that folder and install it from there; so that you end up with something like this.

http://thenortherntundra.com/MyFolderName/viewtopic.php?f=3&t=1

It's the simplest way of avoiding all other problems in the future, when it comes to path issues - And in particular - .htaccess issues.


I thought that un-commenting this line from the .htaccess file was the only thing you needed to do when installing on root.
ea.
Code: [Hide] [Select]
RewriteEngine On
#This may cause issues with subdirs and so it is not enabled by default.
#RewriteBase /

becomes,
Code: [Hide] [Select]
RewriteEngine On
#This may cause issues with subdirs and so it is not enabled by default.
RewriteBase /

on a root directory install?

My forum is installed in the root dir.


mort [ Thu 29 Dec, 2011 08:51 ]
Post subject: Re: Images In Posts
I could point out some problems with having Icy htaccess in the root - But it's a bit pointless, as the last experience I had was with v27c (I think)

So no doubt I shall not be attempting to provide any other support in future because I have not been keeping up what's happened to Icy Phoenix since then - So it's time to move on again.

And what I mean by time to move on again - Counting both of my handles here, my total accumulative posts to date are 2,188 as I was trying to knock MG from the top spot and failed miserably.



Time for someone else to give it a try - But I guess it will never happen!


spydie [ Thu 29 Dec, 2011 16:53 ]
Post subject: Re: Images In Posts
hm. do you have magic_quotes_gpc on ??

as i see the Flags comented, but i´m not shure, since i don´t understand .htaccess files and rules very well.

anyway , this option should be on by default.

BTW there was a setting in ACP. images in posts, Upload should be set to ALL or Reg

and precompiled posts should be set OFF


mort [ Thu 29 Dec, 2011 21:19 ]
Post subject: Re: Images In Posts
I'm pretty sure Icy checks the status of magic_quotes_gpc before it adds slashes or not to prevent double-slashes etc.

And as I understand it magic_quotes_gpc wont exist in phpv6 and addslashes and stripslashes are to be deprecated and replaced with mysql_real_escape_string()


addslashes escapes: ', ", \, and NUL
mysql_real_escape_string escapes, in addition: \x00, \n, \r, and \x1a.

Edit:

And as for checking Magic Quotes etc, it should look something like this.

stripslashes or addslashes

Code: [Hide] [Select]
// escape variables
function escape($val){

$val = trim($val);

if(get_magic_quotes_gpc()) {
$val = stripslashes($val);
}
return mysql_real_escape_string($val);
}




Or just turn them off altogether in Icy Script.


Joshua203 [ Thu 29 Dec, 2011 22:37 ]
Post subject: Re: Images In Posts
If anyone would like me to split this topic just shout a new title and a location to put it, cause I think we're drifting away from devildog's support question imho


mort [ Fri 30 Dec, 2011 05:30 ]
Post subject: Magic Quotes And Add/strip Slashes To Be Deprecated
Read about this on google - - - Going to mean a lot of work for some people.


mort [ Fri 30 Dec, 2011 05:32 ]
Post subject: Re: Images In Posts
Cut it here Josh!

http://www.icyphoenix.com/viewtopic.php?p=54848#p54848


Joshua203 [ Fri 30 Dec, 2011 16:11 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
I hope this is how you meant it Mort ...


Hans [ Sat 31 Dec, 2011 07:11 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
LOL

I am lost. I should add little more info though.

The IcyPhoneix version I have installed in the root folder of my TLD is 1.3.0.53b, following I have attached my .htaccess from that website.
Spoiler: [ Show ]


Notice that the rewite base is uncommented at line 55, this website is hosted on a shared server with GoDaddy. The URL if you wish to check that things are working is www.gplforum.com


I can't think of anything that I have had a problem with due to it being installed in the root folder, however if anyone knows of any problems with later versions please let me know.


Informpro [ Mon 02 Jan, 2012 21:03 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Never experienced any problem with RewriteBase to /, may it be with IcyPhoenix or my own websites.


mort [ Mon 02 Jan, 2012 23:02 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Oh Dear,

The problem is that in the past some of those people who had/have installed IP to the root of the public folder.

Then used cPanel or the likes to add "hot-linking, re-directs" etc, and the whole script in the .htaccess file has collapsed into one continuous line.

Doesn't work all that well when it's just one BIG - - LONG string of commands.

And no-one said it CAN'T work in the root of the public folder - it just needs to be adjusted in the manner that you two have gone on and on about.


Hans [ Wed 04 Jan, 2012 16:13 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Ahh! Thanks for explaining.

Yeah I don't use Cpanel for any of my websites, I have access to a form of it with my Godaddy host but I only use the economy service with them anyway. (so there is no need for virtual-hosts and so on)

For my local server I am a die-hard unix guy, so everything is done manually. For example; to keep everything clean on my server, I install everything to it's own directory (/var/www/IcyPhoenix_1.3...) so I know what version I am running and everything like that. On top of that everything get it's own database accordingly.


Mighty Gorgon [ Sun 08 Jan, 2012 19:52 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
I'm a bit lost in this topic... I still don't understand what the issue is.

If it is not solved yet, can you please try to explain again please?


Hans [ Sun 08 Jan, 2012 20:17 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Well this topic got split for some reason that I have yet to understand.

The original problem was here >> http://www.icyphoenix.com/viewtopic.php?f=2&t=8299

Not sure why it got split or what it has to do with the new title, but I have no problem.


Mighty Gorgon [ Sun 08 Jan, 2012 20:31 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
If there are no issues and everything is working fine... I have no issues then!


Joshua203 [ Sun 08 Jan, 2012 20:40 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Hans wrote: [View Post]
Well this topic got split for some reason that I have yet to understand.


I suggested splitting because we were drifting further offtopic from the initial support question Hans.


mort [ Tue 10 Jan, 2012 09:42 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Joshua203 wrote: [View Post]
Because we were drifting further off topic from the initial support question.


More like fell off the cliff?

But I thought I re-started this in General Chat, as I couldn't see much value in it being in General Support because it's more rambling than topical.

Hahahaha!


Joshua203 [ Tue 10 Jan, 2012 13:54 ]
Post subject: Re: Magic Quotes And Add/strip Slashes To Be Deprecated
Yeah later it got moved again, I guess by MG, I must admit I had the same thought but did not act on it




Powered by Icy Phoenix