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

Diagnostics >> Edit File Issues

Scheduled Pinned Locked Moved webGUI
4 Posts 3 Posters 3.3k Views
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 Offline
    monkfish
    last edited by Sep 15, 2012, 3:14 AM Sep 14, 2012, 12:40 PM

    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 Offline
      Efonnes
      last edited by Sep 17, 2012, 9:25 AM

      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
      • J Offline
        jimp Rebel Alliance Developer Netgate
        last edited by Sep 17, 2012, 12:42 PM

        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 Offline
          monkfish
          last edited by Sep 19, 2012, 5:34 PM

          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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received