mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Fixing codacy issues. Reduced reported count from 550 to 518.
This commit is contained in:
		
							parent
							
								
									9b8d8e9b7c
								
							
						
					
					
						commit
						fc9cd0a3b7
					
				
					 13 changed files with 51 additions and 41 deletions
				
			
		|  | @ -154,10 +154,12 @@ public class ContributionsContentProvider extends ContentProvider { | |||
|     public int update(@NonNull Uri uri, ContentValues contentValues, String selection, String[] selectionArgs) { | ||||
|         /* | ||||
|         SQL Injection warnings: First, note that we're not exposing this to the outside world (exported="false") | ||||
|         Even then, we should make sure to sanitize all user input appropriately. Input that passes through ContentValues | ||||
|         should be fine. So only issues are those that pass in via concating. | ||||
|         Even then, we should make sure to sanitize all user input appropriately. | ||||
|         Input that passes through ContentValuesshould be fine. So only issues are those that pass | ||||
|         in via concating. | ||||
| 
 | ||||
|         In here, the only concat created argument is for id. It is cast to an int, and will error out otherwise. | ||||
|         In here, the only concat created argument is for id. It is cast to an int, and will | ||||
|         error out otherwise. | ||||
|          */ | ||||
|         int uriType = uriMatcher.match(uri); | ||||
|         CommonsApplication app = (CommonsApplication) getContext().getApplicationContext(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 poojithakr
						poojithakr