]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: There are some problems with Friendica installed in subdirectories
authorMichael Vogel <icarus@dabo.de>
Thu, 13 Aug 2015 22:13:23 +0000 (00:13 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 13 Aug 2015 22:13:23 +0000 (00:13 +0200)
mod/admin.php
mod/regmod.php

index 21a1c003036af64f4fc561bed2751c87ff45465c..ad6460d9c39427892abe04748fd81da8ab6f5a17 100644 (file)
@@ -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');
index 53e6716f265c7be0cbec9eb6a7a6b18abd635b9e..3ab43b105cae67cf37b1d0667faf3683c9be0dba 100644 (file)
@@ -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();
        }
 }