热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Escaping_indb_nameinserver_privileges

Ihavesomedbswithan_inthename.Youdoastr_replaceinserver_privileges.php

I have some dbs with an _ in the name.
You do a str_replace in server_privileges.php on line
1193 ($Id: server_privileges.php,v 2.29 2004/09/14
16:01:55 lem9)
echo '' .
"\n";



Why did you do that?

With this str_replace I can't successfully do the
following scenario:




  1. create a db with a _ in the name (test_db)

  2. go into privileges

  3. edit a user

  4. choose the test_db from "Add privileges on the
    following database:"

  5. take a look at the top. it looks like this:
    "User 'user'@'%' - Database test_db"

Because of the backslash it is not possible to update
the privileges for this db.

  • Original URL: "https://sourceforge.net/p/phpmyadmin/bugs/1502/":https://sourceforge.net/p/phpmyadmin/bugs/1502/

  • Original author: j0erch

该提问来源于开源项目:phpmyadmin/phpmyadmin


  • Status: closed-fixed --> invalid

  • Original author: nijel


   



推荐阅读
author-avatar
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有