Skip to content

Commit

Permalink
Update applications_controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed Mar 29, 2023
1 parent a7f123b commit bc929f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions applications_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function get_32_bit_apps()
**/
public function get_data($serial_number = '')
{
// Remove non-serial number characters
$serial_number = preg_replace("/[^A-Za-z0-9_\-]]/", '', $serial_number);

$sql = "SELECT name, path, last_modified, obtained_from, runtime_environment, version, bundle_version, info, signed_by, has64bit
FROM applications
WHERE serial_number = '$serial_number'";
Expand Down

0 comments on commit bc929f0

Please sign in to comment.