Torry,

I think I know what the problem is the aup text has a html filter automatically being apply to it.

Can you try and apply the following patch.

cd /usr/local/pf

curl https://github.com/inverse-inc/packetfence/commit/fc51eab63867ca8ec7848c7dc9049c260ac3dc59.diff | patch -p1

Let me know if it has been fixed.


James Rouzier
[email protected] :: +1.514.447.4918 (x115)  ::  http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://www.packetfence.org)

On 2016-05-31 10:13 AM, Torry, Andrew wrote:

Yes James,

We are using 6.0.1 (not yet patched to 6.0.2).

I have created that ‘aup_text’ subroutine as a test and it now reads a text-only file but it ignores all the formatting as if it was an

HTML file and reformats it in its own way. Is it possible to added \n’s etc. to get it to at least to replace the <br>’s

Regards

Andrew

*From:*James Rouzier [mailto:[email protected]]
*Sent:* 31 May 2016 14:48
*To:* [email protected]
*Subject:* Re: [PacketFence-users] HTML code in print sent to users - Not clever!

Torry to better help you what version of PacketFence are you running?

James Rouzier
[email protected] <mailto:[email protected]>  :: +1.514.447.4918 (x115)  
::http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://www.packetfence.org)

On 2016-05-31 9:24 AM, Torry, Andrew wrote:

    When a block of user accounts are created and we wish to print out
    these on sheet by sheet basis

    the AUP is included on each sheet and is extracted from
    pf/html/captive-portal/templates/aup_text.html

    Our AUP is tabulated using embedded HTML and customisation and
    this is being included in the printout as

    gobbledegook:-

    <br><b>Any user detected to be in breach of this agreement will be
    barred from using <b>The Network</b> and further action

    may be taken commensurate with the offence together with any
    statutory legal requirements.</p></b><br><b><big>The Network must

    not be used for any of the
    following:-</b></big><br><br><DL><DT><b>Deliberate <i>(or
    attempted)</i> unauthorised access to services on other networks;</b>

    </DL><DL><DT><b>The creation, transmission or retrieval
    of:-</b><DD>Any offensive, obscene or indecent images;<DD>Data
    <i>(in any form)</i>

    that is capable of being resolved into such images;<DD>The
    accessing of any web site that give access to, or references such
    images;<DD>

    Material intended to <i>(or is likely to)</i>, cause annoyance,
    inconvenience or anxiety to others;<DD>Any material of a
    defamatory nature;

    <DD>Any material that would infringe the copyright of another
    person <i>(e.g. The use of Peer-Peer software)</i>;<DD>Unsolicited
    commercial

    or advertising materia…

    It prints as a continuous unbroken line of text and is unreadable.

    It gets the output from the ‘aup’ subroutine in
    /pf/lib/pf/web/guest.pm.

    I suppose  could simply create a new subroutine ‘aup_text’ in the
    same file that reads a text only version of the same AUP.

    But this ‘mod’ will get broken in the next update - yes?

    Is there a way of getting it to use an ASCII printable copy
    without mashing up our aup_text.html file.

    Andrew




    
------------------------------------------------------------------------------

    What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic

    patterns at an interface-level. Reveals which users, apps, and protocols are

    consuming the most bandwidth. Provides multi-vendor support for NetFlow,

    J-Flow, sFlow and other flows. Make informed decisions using capacity

    planning reports.https://ad.doubleclick.net/ddm/clk/305295220;132659582;e




    _______________________________________________

    PacketFence-users mailing list

    [email protected]
    <mailto:[email protected]>

    https://lists.sourceforge.net/lists/listinfo/packetfence-users



------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to