Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 46
SyntaxHighlighte... 48
Newsletters v4.03 107
Facebook Like Box 123
Newsletters v4.02 56
Metro 158
Facebook Connect 166
Shoutbox Panel 125
Redactor for PHP... 104
MI Floating Side... 107
Facebook Login/R... 151
Avatar Studio v2.03 177
Relationship Sta... 96
Sexual Orientati... 113
Fisherman 142
Popular Addons
iTheme2 5797
Arise 5785
User Control v1.23 4617
Event Calendar 4046
Photowidget panel 3884
Radio-Theme red2... 3351
Highslide Gallery 3311
CSS/JavaScript D... 3223
Facebook Connect... 2980
Dynamic Menu 2889
Slideshow Lightb... 2719
L-AMANT 2657
Enigma 2630
2Dark 2603
Black 2571
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
HighSlide Gallery Error Panels and Infusions 1 17-05-2013 21:58
Need help with SQL Syntax error after update Upgrading issues 8 17-05-2013 09:13
How to change displaying my home page from news.php to index.php? General Discussion 19 14-05-2013 09:24
Forum attachments - page Panels and Infusions 3 12-05-2013 21:33
Profile Scaner - page Panels and Infusions 1 05-05-2013 14:18
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 byVenue