Skip to content

Commit 3e93cb7

Browse files
committed
XSS Prevention
1 parent 14f450b commit 3e93cb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Http/Controllers/KchatController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ function getConvo(Request $request){
142142
->get()
143143
->toArray();
144144

145+
foreach($tmp as $i => $v){
146+
$tmp[$i]->conversation_name = htmlentities($tmp[$i]->conversation_name);
147+
}
148+
145149
return json_encode($tmp);
146150

147151
}

0 commit comments

Comments
 (0)