Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/web In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15322
Added Files: libjs-swfupload.info libjs-swfupload.patch Log Message: * New port --- NEW FILE: libjs-swfupload.info --- Package: libjs-swfupload Version: 2.2.0.1 Revision: 2.1 ### BuildDepends: swftools (>= 0.9.2-2) ### Source: mirror:debian:/pool/main/libj/%n/%n_%v+ds1.orig.tar.gz Source-MD5: 37408becdc0a93f4dbc0e500b208db98 SourceDirectory: %n_%v+ds1 PatchFile: %n.patch PatchFile-MD5: 50f5902f1758bbdd15c149f9b1f4e623 PatchScript: << sed -e 's,@FINKPREFIX@,%p,g' %{PatchFile} | patch -p1 ### Apply some Debian Patches for Security and Build Issues patch -p1 < fink/patches/fix-CVE-2012-2399-xss.patch patch -p1 < fink/patches/fix-externalcall.patch ### Remove spaces mv Core\ Changelog.txt Changelog.txt mv swfupload\ license.txt license.txt << ### CompileScript: << cd Flash && as3compile -M SWFUpload -T 9 -X 300 -Y 300 -r 15 SWFUpload.as -o swfupload.swf mv Flash/swfupload.swf swfupload.swf << InstallScript: << install -d -m 755 %i/share/javascript/swfupload install -d -m 755 %i/share/javascript/swfupload/plugins install -m 644 swfupload.js swfupload.swf %i/share/javascript/swfupload install -m 644 plugins/* %i/share/javascript/swfupload/plugins << ### DocFiles: Changelog.txt license.txt Documentation/index.html ### Description: JS lib to use Flash's upload functionality DescDetail: << SWFUpload is a JavaScript Library that wraps the Flash Player's upload function. It brings your uploads to the next level with Multiple File Selection, Upload Progress and Client-side File Size Checking. . Unlike other Flash upload tools, SWFUpload leaves the UI in the developer's hands. Using a set of event handlers developers can display upload progress and status to the user in their own HTML/CSS UI. . Features: * Multiple File Selection * File Upload Progress * Custom Limits for File Size and Number of Uploads * Filter by File Type ie. *.jpg * File Queue * Customize the Browse Control * Flash 10 Support << ### License: BSD Homepage: http://code.google.com/p/swfupload/ Maintainer: Justin F. Hallett <the...@users.sourceforge.net> --- NEW FILE: libjs-swfupload.patch --- diff -ruN libjs-swfupload_2.2.0.1+ds1.orig/fink/patches/fix-CVE-2012-2399-xss.patch libjs-swfupload_2.2.0.1+ds1/fink/patches/fix-CVE-2012-2399-xss.patch --- libjs-swfupload_2.2.0.1+ds1.orig/fink/patches/fix-CVE-2012-2399-xss.patch 1969-12-31 17:00:00.000000000 -0700 +++ libjs-swfupload_2.2.0.1+ds1/fink/patches/fix-CVE-2012-2399-xss.patch 2013-05-06 11:11:43.000000000 -0600 @@ -0,0 +1,11 @@ +diff -ruN libjs-swfupload_2.2.0.1+ds1.orig/Flash/SWFUpload.as libjs-swfupload_2.2.0.1+ds1.patched/Flash/SWFUpload.as +--- libjs-swfupload_2.2.0.1+ds1.orig/Flash/SWFUpload.as 2009-03-27 04:15:10.000000000 -0600 ++++ libjs-swfupload_2.2.0.1+ds1.patched/Flash/SWFUpload.as 2013-05-06 11:11:27.000000000 -0600 +@@ -232,6 +232,7 @@ + + // Get the movie name + this.movieName = root.loaderInfo.parameters.movieName; ++ this.movieName = this.movieName.replace(/[^a-zA-Z0-9\_\.\-]/g, ""); + + // **Configure the callbacks** + // The JavaScript tracks all the instances of SWFUpload on a page. We can access the instance diff -ruN libjs-swfupload_2.2.0.1+ds1.orig/fink/patches/fix-externalcall.patch libjs-swfupload_2.2.0.1+ds1/fink/patches/fix-externalcall.patch --- libjs-swfupload_2.2.0.1+ds1.orig/fink/patches/fix-externalcall.patch 1969-12-31 17:00:00.000000000 -0700 +++ libjs-swfupload_2.2.0.1+ds1/fink/patches/fix-externalcall.patch 2013-05-06 11:13:28.000000000 -0600 @@ -0,0 +1,19 @@ +diff -ruN libjs-swfupload_2.2.0.1+ds1.orig/Flash/ExternalCall.as libjs-swfupload_2.2.0.1+ds1.patched/Flash/ExternalCall.as +--- libjs-swfupload_2.2.0.1+ds1.orig/Flash/ExternalCall.as 2009-03-27 04:16:56.000000000 -0600 ++++ libjs-swfupload_2.2.0.1+ds1.patched/Flash/ExternalCall.as 2013-05-06 11:13:00.000000000 -0600 +@@ -99,7 +99,7 @@ + } + + private static function EscapeString(message:String):String { +- var replacePattern:RegExp = /\\/g; //new RegExp("/\\/", "g"); ++ var replacePattern:RegExp = /\\/g; + return message.replace(replacePattern, "\\\\"); + } + private static function EscapeArray(message_array:Array):Array { +@@ -118,4 +118,4 @@ + } + + } +-} +\ No newline at end of file ++} ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs