diff --git a/htdocs/application/models/Pastes.php b/htdocs/application/models/Pastes.php index 1b9e7fc..28bbf4d 100644 --- a/htdocs/application/models/Pastes.php +++ b/htdocs/application/models/Pastes.php @@ -141,10 +141,10 @@ class Pastes extends CI_Model if ($burn) { - echo 'copy this URL, it will become invalid on visit: ' . site_url('view/' . $data['pid']) . ''; + echo 'copy this URL, it will become invalid on visit: ' . site_url('view/' . $data['pid']); if ($data['snipurl'] !== false) { - echo '
Shorturl: ' . $shorturl . '
'; + echo '
Shorturl: ' . $shorturl . '">' . $shorturl . '
'; } exit; } diff --git a/htdocs/themes/bootstrap/js/stikked.js b/htdocs/themes/bootstrap/js/stikked.js index edec093..b89e601 100644 --- a/htdocs/themes/bootstrap/js/stikked.js +++ b/htdocs/themes/bootstrap/js/stikked.js @@ -151,6 +151,8 @@ ST.crypto = function() { if (redirect_url.indexOf('E_CAPTCHA') > -1) { $('.container .message').remove(); $('.container:eq(1)').prepend('
The captcha is incorrect.
'); + } else if (redirect_url.indexOf('invalid') > -1) { + $('#create_encrypted').parent().html('

' + redirect_url + '#' + key + '

'); } else { window.location.href = base_url + redirect_url + '#' + key; } diff --git a/htdocs/themes/default/js/stikked.js b/htdocs/themes/default/js/stikked.js index 00a2434..eda19d8 100644 --- a/htdocs/themes/default/js/stikked.js +++ b/htdocs/themes/default/js/stikked.js @@ -180,6 +180,8 @@ ST.crypto = function() { if (redirect_url.indexOf('E_CAPTCHA') > -1) { $('.content .container .message').remove(); $('.content .container').prepend('
The captcha is incorrect.
'); + } else if (redirect_url.indexOf('invalid') > -1) { + $('#create_encrypted').parent().html('

' + redirect_url + '#' + key + '

'); } else { window.location.href = base_url + redirect_url + '#' + key; }