summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjvoisin2018-07-09 07:37:58 +0000
committerxXx-caillou-xXx2018-07-09 09:37:58 +0200
commit5da3a92492bf169e62367d954cfa7432bee51fed (patch)
tree2e094ed1a5a8400269c48c520539b7dac28ced27 /doc
parentca3be84076521c4bb053511775c94c0b195aeac8 (diff)
Trying to fix sloppy comparison (#186)
* Trying to fix sloppy comparison https://github.com/nbs-system/snuffleupagus/issues/10 by modifying php's opcode
Diffstat (limited to 'doc')
-rw-r--r--doc/source/config.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst
index b5bcad4..0186b4a 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -106,6 +106,19 @@ It can either be ``enabled`` or ``disabled``.
106 106
107.. _config_global: 107.. _config_global:
108 108
109Prevent sloppy comparison
110^^^^^^^^^^^^^^^^
111
112sloppy_comparison, disabled by default, will prevent php `type
113juggling <https://secure.php.net/manual/en/language.types.type-juggling.php>`_ (``==``) , preventing any bypass of a comparison.
114
115It can either be ``enabled`` or ``disabled``.
116
117::
118
119 sp.sloppy_comparison.enable();
120 sp.sloppy_comparison.disable();
121
109unserialize_hmac 122unserialize_hmac
110^^^^^^^^^^^^^^^^ 123^^^^^^^^^^^^^^^^
111 124