mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: Cater special characters during database deletion
This commit is contained in:
@@ -134,7 +134,7 @@ class mysqlUtilities:
|
||||
if connection == 0:
|
||||
return 0
|
||||
|
||||
cursor.execute("DROP DATABASE " + dbname)
|
||||
cursor.execute("DROP DATABASE `%s`" % (dbname))
|
||||
cursor.execute("DROP USER '"+dbuser+"'@'localhost'")
|
||||
connection.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user