Skip to content

Commit bfab309

Browse files
committed
Sanitize the incoming data
1 parent 066ed49 commit bfab309

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ private function getCachedOrLiveData(): array {
155155
return [];
156156
}
157157

158+
foreach ( $data as $key => $value ) {
159+
$data[ $key ]['plugin'] = sanitize_text_field( $value['plugin'] );
160+
$data[ $key ]['url'] = esc_url_raw( $value['url'] );
161+
}
158162
}
159163

160164
return $data;

0 commit comments

Comments
 (0)