I am not sure of the canonical escape function in ruby, but you'd need something like php's escapeshellarg().
Otherwise your code will break if there are legitimate ' characters in the player name. Though I would imagine that a space char in a flash player path is a few orders of magnitude more likely than a ' thus your solution should push the bug down to a tiny fraction of what it was before since before it would break for anyone that had a space in their hard drive name.
Alan
> --
> You received this message because you are subscribed to the Google Groups "ProjectSprouts" group.
> To post to this group, send email to project...@googlegroups.com
> To unsubscribe from this group, send email to projectsprout...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
>
> For other info you can visit our project at: http://projectsprouts.org, or on Github at: http://github.com/lukebayes/project-sprouts
These paths should be "cleaned" by the System class, or the FileParam class.
I'll take a look and see what I can find.
Thanks,
Luke