Commit fffe66e9 authored by David Morley's avatar David Morley Committed by GitHub

Merge pull request #56 from noplanman/fix_sprintf

Escape $ as this is not supposed to be a variable.
parents 4460e00a c6a9f954
......@@ -85,8 +85,8 @@ if ($valid == '1') {
$to = $adminemail;
$cc = $_POST['email'];
$subject = 'New pod added to podupti.me ';
$message .= sprintf(
"%1$s\n\n Stats Url: %2$s\n\n Pod: %3$s\n\n",
$message = sprintf(
"%1\$s\n\nStats Url: %2\$s\n\nPod: %3\$s\n\n",
'https://podupti.me',
'https://api.uptimerobot.com/getMonitors?format=json&customUptimeRatio=7-30-60-90&apiKey=' . $_POST['url'],
'https://podupti.me/db/pull.php?debug=1&domain=' . $_POST['domain']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment