Skip to content

Commit

Permalink
Update sp-core.php and sp-helpers.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Beto committed Feb 1, 2025
1 parent c350e18 commit 0851df7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/sp-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function GoogleLoginCallback()
/**
* isAuthenticated
*
* @return bool
* @return boolean
*/
protected function isAuthenticated()
{
Expand Down
2 changes: 1 addition & 1 deletion core/sp-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function friendly_slug($input)

function sanitize($input) {
// Allow only alphanumeric characters and underscore
$tmp = trim(preg_replace('/[^a-zA-Z0-9_]/', '', $input));
$tmp = trim(preg_replace('/[^a-zA-Z0-9-@\._]/', '', $input));
return $tmp;
return false;
}
Expand Down

0 comments on commit 0851df7

Please sign in to comment.