From 0e9b2c132a4396144dbcf1dda4160973c56e5237 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 14 Aug 2015 00:13:23 +0200 Subject: [PATCH] Bugfix: There are some problems with Friendica installed in subdirectories --- mod/admin.php | 2 +- mod/regmod.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 21a1c00303..ad6460d9c3 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -857,7 +857,7 @@ function admin_page_users_post(&$a){ $nu_nickname = ( x($_POST, 'new_user_nickname') ? $_POST['new_user_nickname'] : ''); $nu_email = ( x($_POST, 'new_user_email') ? $_POST['new_user_email'] : ''); - check_form_security_token_redirectOnErr($a->get_baseurl().'/admin/users', 'admin_users'); + check_form_security_token_redirectOnErr('/admin/users', 'admin_users'); if (!($nu_name==="") && !($nu_email==="") && !($nu_nickname==="")) { require_once('include/user.php'); diff --git a/mod/regmod.php b/mod/regmod.php index 53e6716f26..3ab43b105c 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -121,13 +121,13 @@ function regmod_content(&$a) { if($cmd === 'deny') { user_deny($hash); - goaway("/admin/users/"); + goaway($a->get_baseurl()."/admin/users/"); killme(); } if($cmd === 'allow') { user_allow($hash); - goaway("/admin/users/"); + goaway($a->get_baseurl()."/admin/users/"); killme(); } } -- 2.39.5