Skip to content
Myr

add section on copy/paste security

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kai Chen · committed by David Lord · parent 93dd170 · Browse files · 1 file+19 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+19 added−0 removed

  • other:+19 added−0 removed

1 file+19 added−0 removed

modified:docs/security.rst+19 added
256 unmodified lines
257 Be careful when enabling this, as it is very difficult to undo if you set up258 or upgrade your key incorrectly.259260- https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key_Pinning261262Copy/Paste Security Issues263~~~~~~~~~~~~~~~~~~~~~~~~~~264265If your website allows users to upload their own code, hidden characters266such as the backspace character (``\b``, ``^H``) can cause the code to267have a different meaning when copy and pasted into terminals.268269For example, ``import y\bose\bm\bi\bt\be\b`` renders as270``import yosemite`` but becomes ``import os`` when pasted in a terminal.271272Consider applying extra filtering, such as replacing all ``\b``273characters.274275.. code-block:: python276277 body = body.replace("\b", "")278279- https://security.stackexchange.com/q/39118