mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Remove and replace functions
This commit is contained in:
@@ -269,14 +269,6 @@ class Utility
|
||||
exit($response);
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple function to reduce duplication in html string formatting.
|
||||
*/
|
||||
public static function htmlfmt($string): string
|
||||
{
|
||||
return htmlspecialchars($string, ENT_QUOTES, 'utf-8');
|
||||
}
|
||||
|
||||
public static function getRange($tableName): LengthAwarePaginator
|
||||
{
|
||||
$range = DB::table($tableName);
|
||||
|
||||
@@ -186,12 +186,12 @@ class RegisterController extends Controller
|
||||
}
|
||||
app('smarty.view')->assign(
|
||||
[
|
||||
'username' => Utility::htmlfmt($userName),
|
||||
'password' => Utility::htmlfmt($password),
|
||||
'password_confirmation' => Utility::htmlfmt($confirmPassword),
|
||||
'email' => Utility::htmlfmt($email),
|
||||
'invitecode' => Utility::htmlfmt($inviteCode),
|
||||
'invite_code_query' => Utility::htmlfmt($this->inviteCodeQuery),
|
||||
'username' => e($userName),
|
||||
'password' => e($password),
|
||||
'password_confirmation' => e($confirmPassword),
|
||||
'email' => e($email),
|
||||
'invitecode' => e($inviteCode),
|
||||
'invite_code_query' => e($this->inviteCodeQuery),
|
||||
'showregister' => $showRegister,
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user