diff --git a/htdocs/application/models/Pastes.php b/htdocs/application/models/Pastes.php index ce52f91..1b181c4 100644 --- a/htdocs/application/models/Pastes.php +++ b/htdocs/application/models/Pastes.php @@ -104,7 +104,7 @@ class Pastes extends CI_Model $CItemp = &get_instance(); echo '
Copy this URL:'; - echo '' . site_url('view/' . $data['pid']) . "\n"; + echo '
' + redirect_url + '#' + key + '
'); + // burn on read + redirect_url = redirect_url.replace('" />', '#' + key + '" />') + $('#create_encrypted').parent().html('' + redirect_url + '
'); } else { window.location.href = base_url + redirect_url + '#' + key; }