Browse Source

fixed a bug where you could theorethically craft a request that would let you type your deal as part of the ssh pubkey entry (this would've worked for other entries too

master
Makefile_dot_in 1 year ago
parent
commit
52da7ec873
  1. 2
      src/register.php

2
src/register.php

@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
// Sanitize the input
$safe_args = str_replace($sep, "", $args);
// join the results together into the final file
$final_data = implode($sep, $args);
$final_data = implode($sep, $safe_args);
file_put_contents($in_fifo, $final_data);
// read 50 characters from $out_file and trim the padding
$message = trim(`cat $out_fifo`);

Loading…
Cancel
Save