The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

File Manager Edit File bug

Discussion in 'General Discussion' started by dariofg2, Apr 8, 2003.

  1. dariofg2

    dariofg2 Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    In the "Edit File" function of CPanel's "File Manager", the contents of the file are being dumped inside the textarea form field without escaping the HTML special characters:

    & = &
    < = &amp;lt;
    > = &amp;gt;
    " = &amp;quot;

    What happens is that when a file that's being edited has the tag </textarea>, the browser mistakingly closes the textarea, and the file's contents and the page's HTML code get mixed up.

    -Dario
     
  2. dolphyn

    dolphyn Well-Known Member

    Joined:
    Nov 27, 2001
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Bug Confirmed

    Agreed, but sometimes the effects are a bit more subtle.

    One of my customers was trying to use a greeting card script (link) and this bug caused a tiny section of the file to get corrupted every time he used the CPanel File Editor to make minor changes. Result: "Internal Server Error" when he tried to run the script.
     
Loading...

Share This Page