瀏覽代碼

Bugfix: There are some problems with Friendica installed in subdirectories

tags/3.4.2^2
Michael Vogel 5 年之前
父節點
當前提交
0e9b2c132a
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      mod/admin.php
  2. +2
    -2
      mod/regmod.php

+ 1
- 1
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');


+ 2
- 2
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();
}
}

Loading…
取消
儲存