diff options
| author | jvoisin | 2018-07-09 07:37:58 +0000 |
|---|---|---|
| committer | xXx-caillou-xXx | 2018-07-09 09:37:58 +0200 |
| commit | 5da3a92492bf169e62367d954cfa7432bee51fed (patch) | |
| tree | 2e094ed1a5a8400269c48c520539b7dac28ced27 /doc | |
| parent | ca3be84076521c4bb053511775c94c0b195aeac8 (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.rst | 13 |
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 | ||
| 109 | Prevent sloppy comparison | ||
| 110 | ^^^^^^^^^^^^^^^^ | ||
| 111 | |||
| 112 | sloppy_comparison, disabled by default, will prevent php `type | ||
| 113 | juggling <https://secure.php.net/manual/en/language.types.type-juggling.php>`_ (``==``) , preventing any bypass of a comparison. | ||
| 114 | |||
| 115 | It can either be ``enabled`` or ``disabled``. | ||
| 116 | |||
| 117 | :: | ||
| 118 | |||
| 119 | sp.sloppy_comparison.enable(); | ||
| 120 | sp.sloppy_comparison.disable(); | ||
| 121 | |||
| 109 | unserialize_hmac | 122 | unserialize_hmac |
| 110 | ^^^^^^^^^^^^^^^^ | 123 | ^^^^^^^^^^^^^^^^ |
| 111 | 124 | ||
