From 56a23f976043982153f66b64eefbbb12f190b10b Mon Sep 17 00:00:00 2001 From: ozhozh Date: Thu, 2 Jul 2009 16:23:37 +0000 Subject: [PATCH] Fixed: typo in constant YOURS_SITE Fixed: no longer throwing error when yourls-go.php accessed with no parameter git-svn-id: http://yourls.googlecode.com/svn/trunk@51 12232710-3e20-11de-b438-597f59cd7555 --- yourls-go.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/yourls-go.php b/yourls-go.php index 7319549..0d168bb 100644 --- a/yourls-go.php +++ b/yourls-go.php @@ -1,18 +1,27 @@ get_var("SELECT `url` FROM `$table` WHERE id = $id")); +var_dump($url); die(); + // URL found if(!empty($url)) { $update_clicks = $db->query("UPDATE `$table` SET `clicks` = clicks + 1 WHERE `id` = $id"); @@ -29,7 +38,7 @@ // Either reserved id, or no such id } else { header ('HTTP/1.1 307 Temporary Redirect'); // no 404 to tell browser this might change, and also to not pollute logs - header ('Location: '. yourls_SITE); + header ('Location: '. YOURLS_SITE); } } exit(); -- 2.45.0