Skip to content
Permalink
Browse files Browse the repository at this point in the history
Flash: Sanitize id (allow only letters, digits and underscore).
  • 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
Expand Up @@ -77,7 +77,7 @@ package com.plupload {
// Security.allowDomain("*");

// 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
this.fileRefList = new FileReferenceList();
Expand Down

0 comments on commit 2d746ee

Please sign in to comment.