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

    HTML center tag

    Development
    4
    10
    5.0k
    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.
    • C
      Christian
      last edited by

      Hi,

      pfSense uses the

      <center>HTML tag. However center was deprecated in HTML 4.01 and it is not valid XHTML.

      It is used in auth.inc, not sure if there are more, I'll check later.
      For auth.inc I would remove the

      <center>tages and add a style to the table to center it.

      If this is the wrong place to suggest the above changes, please let me know.

      Christian</center>

      </center>

      1 Reply Last reply Reply Quote 0
      • B
        billm
        last edited by

        @Christian:

        Hi,

        pfSense uses the

        <center>HTML tag. However center was deprecated in HTML 4.01 and it is not valid XHTML.

        It is used in auth.inc, not sure if there are more, I'll check later.
        For auth.inc I would remove the

        <center>tages and add a style to the table to center it.

        If this is the wrong place to suggest the above changes, please let me know.

        Christian
        </center>

        </center>

        Care to supply a patch?

        –Bill

        pfSense core developer
        blog - http://www.ucsecurity.com/
        twitter - billmarquette

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          We are working to bring the interface into standards and we well know of a lot of problems, including this.

          Reporting them without a patch will fall nowhere.  Either supply a patch or enjoy the free ride.

          1 Reply Last reply Reply Quote 0
          • C
            Christian
            last edited by

            Hi,

            I'll try to supply a patch tomorrow, when I have access to a proper computer again.

            Where are patches posted? Here in the Forum?

            Christian

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              Add the diff file as attachment to your post here or send it as attachment to support@pfsense.com (make sure you are subscribed there already). Also provide aq patch that applies against the HEAD tree, not RELENG.

              1 Reply Last reply Reply Quote 0
              • B
                billm
                last edited by

                @hoba:

                Add the diff file as attachment to your post here or send it as attachment to support@pfsense.com (make sure you are subscribed there already). Also provide aq patch that applies against the HEAD tree, not RELENG.

                As this only applies to HEAD, I'd certainly hope it's not against RELENG_1 :)

                –Bill

                pfSense core developer
                blog - http://www.ucsecurity.com/
                twitter - billmarquette

                1 Reply Last reply Reply Quote 0
                • C
                  Christian
                  last edited by

                  OK, I have done it, attachet is my first patch.

                  While removing the center tag, I changed a couple of formating things that weren't consistent and other issues.

                  It is not necessary to have autocomplete="off" in every input element, it is enough to put it in the form tag.
                  I also replaced the login_focus and the NiftyCheck scripts with one page_load script.

                  At the end of the HTML page ( ) there is an php echo instead of just wrinting it in the plain HTML. And just after the echo there is an } but I can't seem to find the opening { for it - I'm not that good in php.
                  Can the echo be removed and should the } go too?

                  As I said, it's my first patch, so if it isn't ok, I'll try again. If you want I'll also remove the echo metioned above.

                  Christian

                  auth-patch.txt

                  1 Reply Last reply Reply Quote 0
                  • S
                    sullrich
                    last edited by

                    Thanks for this.  But can you remake the patch with diff -rub ?

                    1 Reply Last reply Reply Quote 0
                    • C
                      Christian
                      last edited by

                      Attached a diff -rub

                      Christian

                      auth-patch2.txt

                      1 Reply Last reply Reply Quote 0
                      • S
                        sullrich
                        last edited by

                        Commited, thanks!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.