Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Follow us on Facebook
Follow us on Google+
View Thread
Who is here? 1 guest(s)
 Print Thread
Error in Customer Page
Mondsucht
Hi everyone

I have trouble editing the Customer Page.

Everytime when I put as example

Download source  Code
<?php
opentable("text");
echo '
<center><br />

<img src="../images/content/programm.png"><br /><br />




it put some entities after the save:

Download source  Code
<?php
opentable(\"Herzlich Willkommen bei Lovedream\");
echo \'
<center><br />

<img src=\"../images/content/programm.png\"><br /><br />




and the content doesn't shows

Any idea? I don't know if the bug cames from the core oder from the webserver.

Version v7.02.03

Thanks

Edit: The bug are in all editing areas (news, article etc.)
Edited by Mondsucht on 11-02-2012 17:23
Better the devil you know than the devil you don't.
MONKEY NETLOUNGE SUISSE
 
http://lovedream-radio.com
Tyler
Honestly without being rude - if that's your complete code, I wouldn't try to code anything else. People wonder why they expose sensitive data or get hacked.
Try this
Download source  Code
<?php

opentable("text");

echo '<center><br /><img src="../images/content/programm.png" /><br /><br />';

closetable();
?>




P.S. - There are no bugs with editing articles or anything. The slashes are saved to the database to prevent sql vulnerabilities....
 
Mondsucht
No, that is not the complete code. Just an example..

The Problem is the slashes that shows AFTER when you save.

When you type any code like opentable("text"); it shows normaly the same when you save. But now it shows additional the slashes.... opentable(\"text\");
Better the devil you know than the devil you don't.
MONKEY NETLOUNGE SUISSE
 
http://lovedream-radio.com
Tyler
I'm sorry then. That would suggest it's not stripping slashes.

Edit:
Not that I know for sure but maybe theres an issue with magic quotes.... I am running 7.02.04 and have no issues. repeated ' and " many times with no errors.....
Edited by Tyler on 11-02-2012 21:16
 
Mondsucht
I've updated it from 7.02.03 to currently 7.02.04 with the same "bug". Otherwise I've make no changes or adding addons to the site.

Could it have to do something with the database or between database and fusion?
Better the devil you know than the devil you don't.
MONKEY NETLOUNGE SUISSE
 
http://lovedream-radio.com
Tyler
I do not have this issue. I created custom page and everything.... Maybe its your server settings as I said (magic quotes). I don't recall the solution but before I had a problem and double slashes were added so only one set was stripped.... That was a long time ago. I don't believe anyone else has this problem - or maybe I'm wrong again.....

Maybe check your php settings and see if magic quotes is on or not (ideal setting is off because we add slashes)... I can't do anything for you....
 
Mondsucht
I also suspect the server settings ?!

.............................Local...Master
magic_quotes_gpc....... Off On
magic_quotes_runtime. Off Off
magic_quotes_sybase.. Off Off

Thanks for the reply
Better the devil you know than the devil you don't.
MONKEY NETLOUNGE SUISSE
 
http://lovedream-radio.com
Tyler
I've got'em all off. I can't say that'll fix your issue but can't hurt to try. Hope you find the fix. Some hosts dont allow it but if they wont or you cant turn off the settings try this in your .htaccess
Download source  Code
php_flag magic_quotes_gpc off


It may cause a 500 error and you may need to remove it but try. If it doesn't cause error just make sure you edit the pages/articles to see if it fixes anything....
 
Mondsucht
It works after turn off via .htaccess

thanks for the tip Smile
Better the devil you know than the devil you don't.
MONKEY NETLOUNGE SUISSE
 
http://lovedream-radio.com
Tyler
Absolutely. I may not know everything or be the best programmer but I'll do what I can to help. If you need anything in the future feel free to PM me. Take care.
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
V7 - register.php?error=activate Roadmap 4 15-04-2014 02:21
Error log bug Roadmap 1 14-04-2014 15:06
ERROR 403 Panels and Infusions 6 08-04-2014 12:14
custom page with include??? Content Administration 13 01-04-2014 01:37
google plus page panel Addons Open Testing 5 30-03-2014 16:43
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel fromVenue