Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

error automatic insert \ before " or '

Asked Modified Viewed 4,903 times
N
ntn
N
ntn 10
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Today I have problem when I post new or article insert image ex: <img src="http://www.online.net/abc.jpg" border="0" width="300" height="240"> after save auto add backslash src=\"http://www.online.net/abc.jpg\" border=\"0\" width=\"300\" height=\"240\">. Can you help me to fix it.

Thank you
0 replies

6 posts

J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Use stripslash() function to get rid of slashes.
$text = "<img src=\"http://www.online.net/abc.jpg\" border=\"0\" width=\"300\" height=\"240\">";
$text = stripslash($text);
0 replies
K
KnightHawk
K
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

openside(\"Weekly Babe\");
  echo\"
<!-- Babe Goes Below This Line -->
<a href=\'http://www.group-of-friends.com/WeeklyBabe/YnaAlba01.jpg\'target=\'_blank\'>

<!-- Thumbnail Of Babe Goes Below This Line -->
<img src=\'http://www.group-of-friends.com/WeeklyBabe/tn/YnaAlba01tn.jpg\'><br/>
\";
closeside();


What is causing this though. I have been doing the weekly babe for a while now and this just started this week.

This is the site error log.
[29-Apr-2012 16:37:00] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/shootyou/public_html/group-of-friends/administration/panel_editor.php(150) : eval()'d code on line 1 
[29-Apr-2012 16:37:00] PHP Parse error: syntax error, unexpected $end in /home3/shootyou/public_html/group-of-friends/administration/panel_editor.php(150) : eval()'d code on line 9

[29-Apr-2012 16:43:25] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/shootyou/public_html/group-of-friends/themes/templates/panels.php(74) : eval()'d code on line 1 
[29-Apr-2012 16:43:25] PHP Parse error: syntax error, unexpected $end in /home3/shootyou/public_html/group-of-friends/themes/templates/panels.php(74) : eval()'d code on line 9

One says panel editor and the other is just panel.

Merged on May 02 2012 at 05:17:44:
I guess this thread has been over looked cause it isn't in the suspected bugs or errors. This should probably be moved to that area.

I have found this error is happening in the shout box to. I would like to get this fixed. The only way I was able to get my custom panel to work like it should was to go to the database and edit it there.

Update:
This problem has went away on it's own. Must have been on Hostmonster server side for me.
Edited by KnightHawk on 04-05-2012 22:45,
0 replies
N
nghtshdw
N
  • Junior Member, joined since
  • Contributed 30 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

I am having a similar problem. Everyone who types a word with an ' , I get a forward slash. Here is an example: doesn\'t

I recently upgraded to v7.02.05.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

magic_quotes is ON?
0 replies
N
nghtshdw
N
  • Junior Member, joined since
  • Contributed 30 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

Where is this magic_quotes setting? I haven't heard or seen this before.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

It's PHP internal settings.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

N
N
  • Junior Member, joined since
  • Contributed 30 posts on the community forums.
  • Started 7 threads in the forums
K
K
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 11 threads in the forums
N
N
ntn 10
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet