X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=514146c78df1f3f7b97fae0e6d43d69a85b10f94;hb=91af9de7e4e477da422880fe9b7f3a49617dc77e;hp=53fd1bfe668c78d6a9944f50353e9b53c7736847;hpb=a69dbe7cd541ca054fea6239efce098a7111416a;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 53fd1bfe66..514146c78d 100644 --- a/index.php +++ b/index.php @@ -24,7 +24,7 @@ require_once(INSTALLDIR . "/lib/common.php"); $action = $_REQUEST['action']; -if (!$action) { +if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) { common_redirect(common_local_url('public')); }