$target2 = preg_quote($target, '/');
// Action variable
- $action = $target."\$1/act/";
+ $action = $target . '$1/act/';
// Convert &|&action=...
$output = preg_replace('/' . $target2 . '(.*)&action=/i', $action, $output);
// "The same procedure as last variable"... now for &what=
- $what = $target."\$1/wht/";
+ $what = $target.'$1/wht/';
$output = preg_replace('/' . $target2 . '(.*)&what=/i', $what, $output);
// Repair missed &what=??? entries