forked from leftypol/leftypol
Tinyboard.php: trim
This commit is contained in:
parent
1249fd765e
commit
750ac11581
1 changed files with 6 additions and 4 deletions
|
@ -127,11 +127,13 @@ function twig_filename_truncate_filter($value, $length = 30, $separator = '…')
|
|||
function twig_ratio_function($w, $h) {
|
||||
return fraction($w, $h, ':');
|
||||
}
|
||||
|
||||
function twig_secure_link_confirm($text, $title, $confirm_message, $href) {
|
||||
global $config;
|
||||
|
||||
return '<a onclick="if (event.which==2) return true;if (confirm(\'' . htmlentities(addslashes($confirm_message)) . '\')) document.location=\'?/' . htmlspecialchars(addslashes($href . '/' . make_secure_link_token($href))) . '\';return false;" title="' . htmlentities($title) . '" href="?/' . $href . '">' . $text . '</a>';
|
||||
}
|
||||
|
||||
function twig_secure_link($href) {
|
||||
return $href . '/' . make_secure_link_token($href);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue