Skip to content

Commit

Permalink
Flash: Sanitize id (allow only letters, digits and underscore).
Browse files Browse the repository at this point in the history
  • Loading branch information
jayarjo committed Jan 23, 2013
1 parent a081f64 commit 2d746ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flash/plupload/src/com/plupload/Plupload.as
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ package com.plupload {
// Security.allowDomain("*"); // Security.allowDomain("*");


// Setup id // Setup id
this.id = this.stage.loaderInfo.parameters["id"]; this.id = (this.stage.loaderInfo.parameters["id"]).toString().replace(/[^\w]/g, ''); // allow only [a-zA-Z0-9_]


// Setup file reference list // Setup file reference list
this.fileRefList = new FileReferenceList(); this.fileRefList = new FileReferenceList();
Expand Down

0 comments on commit 2d746ee

Please sign in to comment.