Skip to content

Commit

Permalink
fix: security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
axel7083 committed Jan 11, 2024
1 parent 8306115 commit 1f5d6af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/backend/src/studio-api-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import content from './ai.json';
import { ApplicationManager } from './managers/applicationManager';
import { RecipeStatusRegistry } from './registries/RecipeStatusRegistry';
import { RecipeStatus } from '@shared/models/IRecipeStatus';
import {exec} from 'child_process';

export const RECENT_CATEGORY_ID = 'recent-category';

Expand All @@ -16,8 +15,7 @@ export class StudioApiImpl implements StudioAPI {
) {}

async openURL(url: string): Promise<void> {
// TODO: probably not really secure, ask the user to validate opening
exec(`start "${url}"`);
// TODO: open a browser page
return;
}

Expand Down

0 comments on commit 1f5d6af

Please sign in to comment.