mirror of
https://github.com/pikami/palm-paste.git
synced 2025-12-22 18:29:46 +00:00
Paste title defaults to 'Untitled'
This commit is contained in:
2
post.php
2
post.php
@@ -33,7 +33,7 @@ if(isset($_POST["type"])){
|
||||
$title = "Untitled";
|
||||
$text = $_POST["text"];
|
||||
$exposure = 0;
|
||||
if(isset($_POST["title"]))
|
||||
if(isset($_POST["title"]) && $_POST["title"]!="")
|
||||
$title = $_POST["title"];
|
||||
if(isset($_POST["exposure"]) && is_numeric($_POST["exposure"]))
|
||||
$exposure = $_POST["exposure"];
|
||||
|
||||
Reference in New Issue
Block a user