Skip to content

Commit 828c93b

Browse files
committed
Fix unserialize dictionary generation
We now have namespaced classes in here, and need to escape the backslashes.
1 parent 98b858e commit 828c93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fuzzer/generate_unserialize_dict.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$dict = "";
44
foreach (get_declared_classes() as $class) {
55
$len = strlen($class);
6-
$dict .= "\"$len:\\\"$class\\\"\"\n";
6+
$dict .= "\"$len:\\\"" . addslashes($class) . "\\\"\"\n";
77
}
88

99
file_put_contents(__DIR__ . "/dict/unserialize", $dict);

0 commit comments

Comments
 (0)