• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Fog v0.32 when the snap-in is edited - strips backslashes

Scheduled Pinned Locked Moved Solved
Bug Reports
3
3
1.9k
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.
  • F
    falko Moderator
    last edited by Mar 29, 2012, 8:06 PM

    found this in the below guide and thought i should add it here in case this hasn’t been picked up on
    [url]http://wiki.rscwmsystems.org.uk/images/4/47/Using_Fog.pdf[/url]

    There appears to be a bug on Fog v0.32 which strips backslashes from the snap-in run
    with arguments and snap-in arguments fields when the snap-in is edited. I was able to correct
    this by editing /var/www/fog/management/includes/snapin.edit.include.php, and
    replacing:
    [CODE]echo ( “<tr><td>”._(“Snapin Run With Arguments”).“:</td><td><input
    class=“smaller” type=“text” size=“50” name=“rwa” value=”" .
    htmlentities(stripslashes($ar[“sRunWithArgs”])) . “” /></td></tr>" );[/CODE]

    with
    [CODE]echo ( “<tr><td>”._(“Snapin Run With Arguments”).“:</td><td><input
    class=“smaller” type=“text” size=“50” name=“rwa” value=”" .
    htmlentities($ar[“sRunWithArgs”]) . “” /></td></tr>" );[/CODE]

    and
    [CODE]echo ( “<tr><td>”._(“Snapin Arguments”).“:</td><td><input
    class=“smaller” type=“text” name=“args” size=“60” value=”" .
    $ar[“sArgs”] . “” /></td></tr>" );[/CODE]

    with
    [CODE]echo ( “<tr><td>”._(“Snapin Arguments”).“:</td><td><input
    class=“smaller” type=“text” name=“args” size=“60” value=”" .
    htmlentities($ar[“sArgs”]) . “” /></td></tr>" );[/CODE]

    near line 182
    13 January 2012

    1 Reply Last reply Reply Quote 0
    • B
      Blackout Developer
      last edited by Aug 30, 2012, 1:52 AM

      Fixed in SVN, though this section of the Web UI isnt working just yet.

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Jun 15, 2014, 4:26 PM

        Web UI is, obviously, now functional and all.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

        143

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project