Skip to content
Browse files

Flash: Sanitize id (allow only letters, digits and underscore).

  • Loading branch information...
1 parent a081f64 commit 2d746ee9083c184f1234d8fed311e89bdd1b39e5 @jayarjo jayarjo committed Jan 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/flash/plupload/src/com/plupload/Plupload.as
View
2 src/flash/plupload/src/com/plupload/Plupload.as
@@ -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();

0 comments on commit 2d746ee

Please sign in to comment.
Something went wrong with that request. Please try again.