We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eedfdaa commit efcabfeCopy full SHA for efcabfe
libraries/src/Log/Logger/FormattedtextLogger.php
@@ -144,6 +144,20 @@ public function __destruct()
144
}
145
146
147
+ /**
148
+ * Prevent object injection attacks by suppressing unserialization of instance with deferred rows
149
+ *
150
+ * @since __DEPLOY_VERSION__
151
152
+ * @throws \Exception
153
+ */
154
+ public function __wakeup()
155
+ {
156
+ if ($this->defer && !empty($this->deferredEntries)) {
157
+ throw new \RuntimeException('Can not unserialize in defer mode');
158
+ }
159
160
+
161
/**
162
* Method to add an entry to the log.
163
*
0 commit comments