Skip to main content

non-ASCII "smart" quotes used in .htaccess cPanel-generated handler text

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  i do see this in place, but since it's in a comment I don't believe it would cause any issues with the system.  Are you seeing a problem related to this?

    0
  • ALPCA Webmaster (Royce)

    Not a problem with automation, but rather a problem with human troubleshooting.

    Historically, many very difficult to track down bugs have been traced to non-obvious character corruption, or inadvertent character insertion, that isn't visible to the human eye.

    https://lists.apache.org/thread/tzh5js1r4p32ww88ht0mrd6ym4sx94hh

    A very common command line troubleshooting step is to run a text-based config file through 'strings' [edit: a diff against the non-string'd version, or grepping for non-ASCII] to catch any inadvertent inclusion of non-ASCII. It is therefore considered best practice to avoid unnecessary or cosmetic use of non-ASCII, including in comments [so that only unexpected problematic non-ASCII stands out].

    It seems like a corner case, until you have experienced the pain of an unsolvable bug, for which hours or days later you discover it's because of a character difference you couldn't see.

    0
  • cPRex Jurassic Moderator

    I've let our developers know!

    0

Please sign in to leave a comment.