Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Diagnostics >> Edit File Issues

    webGUI
    3
    4
    2821
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      monkfish last edited by

      Hello,
      Having a few issues with editing file through webgui by clicking Diagnostics, Edit File.

      We have HAVP installed and I wanted to be able to edit the HAVP files in /usr/local/share/examples/havp/templates/en/….. and the squid template files in /usr/local/etc/squid/errors/....

      Whilst I can do it through the command-line the people using this box day-to-day will be using the webgui mostly.

      When I open one of those files there are extra spurious SCRIPT entries inserted into the text which are definitely NOT part of the original file.

      This does not happen to all files, it seems only some HTML-based files.

      Can anybody else reproduce this?

      EDIT: forgot to say, checked it on 2.0.1-RELEASE both x64 and i386 versions

      EDIT again: added squid error files as well - produces same symptoms of script commands added into file in the editor when not in the original.

      Rob

      1 Reply Last reply Reply Quote 0
      • E
        Efonnes last edited by

        Apply this change to /usr/local/www/edit.php : https://github.com/bsdperimeter/pfsense/commit/a38ea8d88e3c06ce4304da1d6404d13c2b894ef4

        However, it would probably be best to do it through something other than the Edit File page.

        1 Reply Last reply Reply Quote 0
        • jimp
          jimp Rebel Alliance Developer Netgate last edited by

          Just cherry-picked that back to RELENG_2_0 so it'll be in the 2.0.2 release.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • M
            monkfish last edited by

            Hi, thanks for looking at that

            …probably be best to do it through something other than the Edit File page...

            ;D ;D ;D

            Added 3 lines using vi in console session. Confirmed working this end on x64 and x86 2.0.1-RELEASE.

            Thank you for pfsense!

            Rob

            1 Reply Last reply Reply Quote 0
            • First post
              Last post