Pen*_*m10 10 android sql-injection android-contentresolver android-sdk-2.1
您可以通过URI删除内容解析程序,也可以将一些参数传递给where参数.
如何使参数成为SQL注入安全?
是否可以将准备好的语句与ContentResolver一起使用?
act.getContentResolver().delete(myuriwithid,null,null);
act.getContentResolver().delete(mybaseuri," name = '"+this.name"'",null);
Run Code Online (Sandbox Code Playgroud)
Gav*_*ong 18
使用位置参数.
public final int delete (Uri url, String where, String[] selectionArgs)
Run Code Online (Sandbox Code Playgroud)
例如
ContentResolver cr = ...;
String where = "nameid=?";
String[] args = new String[] { "george" };
cr.delete( Stuff.CONTENT_URI, where, args );
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11268 次 |
| 最近记录: |