Skip to content

Commit cd7a798

Browse files
authored
Fix SQL Injection
Added cfqueryparam
1 parent a22f25f commit cd7a798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.cfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<cfquery>
22
SELECT * FROM table
3-
WHERE id = #url.id#
3+
WHERE id = <cfqueryparam value="#url.id#" cfsqltype="integer">
44
</cfquery>

0 commit comments

Comments
 (0)