commit - cfa309885ac56787525808d6c0f1e32980833ec6
commit + c05bfb5d8dc4597d6e33eb726c18898fba059c21
blob - 224319639aa31002ba464838d4443be2adfd98a1
blob + 2fb2793c86cab0b5f4c1912d69056ad5b68877b8
--- index.php
+++ index.php
}
if (isset($_POST['url'])) {
- $URL = $_POST['url'];
- if ($URL != '' && strlen($URL) > 0) {
+ if ($_POST['url'] != '' && strlen($_POST['url']) > 0) {
$db = db_connect();
- $link = generate_short($URL, $db);
+ $link = generate_short($_POST['url' , $db);
} else {
$link = false;
}