4 Replies - 958 Views - Last Post: 23 March 2007 - 07:23 AM

#1 Styx   User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 192
  • Joined: 04-March 07

Snippet special characters not changed

Posted 22 March 2007 - 05:26 PM

I recently submitted a snippet to the php section for a basic file editor script, which contained a textarea tag. But when going back to modify the submission, the submit button was acting weird and mixing in with my script (image attached).

Apparently, special characters, like ", &, <, and >, are not being properly converted and results in breaking the snippet textarea.

Attached image(s)

  • Attached Image

This post has been edited by Styx: 22 March 2007 - 05:29 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Snippet special characters not changed

#2 William_Wilson   User is offline

  • lost in compilation
  • member icon

Reputation: 207
  • View blog
  • Posts: 4,812
  • Joined: 23-December 05

Re: Snippet special characters not changed

Posted 22 March 2007 - 06:43 PM

i don't think it was an issue with the textarea, odds are the page just loaded odd as they do from time to time. trust me < and > are converted properly, just look at the source if you don't believe me :)
Was This Post Helpful? 0
  • +
  • -

#3 Styx   User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 192
  • Joined: 04-March 07

Re: Snippet special characters not changed

Posted 23 March 2007 - 01:22 AM

I did look at the source, and have accessed the page multiple times. This is when modifying the snippet, not regular viewing.

If you can, have you tried going to Modify Snippet for this snippet?
Was This Post Helpful? 0
  • +
  • -

#4 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1981
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: Snippet special characters not changed

Posted 23 March 2007 - 07:09 AM

I'll take a look Styx. Thanks for the heads up.
Was This Post Helpful? 0
  • +
  • -

#5 William_Wilson   User is offline

  • lost in compilation
  • member icon

Reputation: 207
  • View blog
  • Posts: 4,812
  • Joined: 23-December 05

Re: Snippet special characters not changed

Posted 23 March 2007 - 07:23 AM

weird, ok i see what you mean.
It must be something to do with the fact that you used a textarea tag and concatenated. I suppose that the invision code must use the variable $contents as well, and perhaps this is why it allowed the jumping out of the actual textarea.
Would it be corrected if the single quotes were made double?

clicking the save button actually attempts to submit the form as well, this is an issue that could be exploited i'm sure.

It's odd that this oddity doesn't show up elsewhere, eg previews, etc, only in the modify.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1