You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, I was trying to store a hash of a password on a yaml file and the value retrieved by spyc had some missing characters.
Looking closely I found that the missings were $1, $10 and that kind of combinations, then making some tracing I get to the line 780 and found this:
$explode[$key] = preg_replace('/YAMLString/',$saved_strings[$stringi],$value, 1);
So preg_replace thinks that those are backreferences and tries to do some replacing...
I think, that the same will be happening on other places too.
Well, I was trying to store a hash of a password on a yaml file and the value retrieved by spyc had some missing characters.
Looking closely I found that the missings were $1, $10 and that kind of combinations, then making some tracing I get to the line 780 and found this:
$explode[$key] = preg_replace('/YAMLString/',$saved_strings[$stringi],$value, 1);
So preg_replace thinks that those are backreferences and tries to do some replacing...
I think, that the same will be happening on other places too.
To solve it look at:
http://php.net/manual/en/function.preg-replace.php#106263
The text was updated successfully, but these errors were encountered: