Skip to content

Commit

Permalink
fix(vendor.Dreame): Newer Dreame Robots may store obstacle images els…
Browse files Browse the repository at this point in the history
…ewhere (master branch)
  • Loading branch information
DGAlexandru committed Jan 8, 2025
1 parent 392ffc3 commit 0fc8ad9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class DreameObstacleImagesCapability extends ObstacleImagesCapability {
* @returns {Promise<import('stream').Readable|null>}
*/
async getStreamForImage(image) {
if (!/^\/data\/record\/\d+\.jpg$/.test(image)) {
if (!/^\/data\/record(?:\/ai_image)?\/\d+\.jpg$/.test(image)) {
/*
Attack scenario:
someone somehow uploads a specially crafted map file containing a path for an obstacle image
Expand Down

0 comments on commit 0fc8ad9

Please sign in to comment.