Skip to content

Commit 162c981

Browse files
committed
Check if expiration date is past for raw pastes
1 parent 07096b2 commit 162c981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/PasteController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function raw($link){
214214
if ($diffTimestamp > 604800) $expired = true;
215215
else $expired = false;
216216
}
217-
elseif($paste->expiration == "expired") {
217+
elseif($paste->expiration == "expired" || time() > strtotime($paste->expiration)) {
218218
$alreadyExpired = true;
219219
$expired = true;
220220
}

0 commit comments

Comments
 (0)