Permalink
Browse files

Fixed IO error on Mac Platform (relating to flashvar string length)

  • Loading branch information...
briceburg committed Apr 19, 2011
1 parent e94f3c0 commit d5d0bea81c393d8fe8d5fb654ddf836ffb00cbaa
Showing with 5 additions and 5 deletions.
  1. +5 −5 code/UploadifyField.php
View
@@ -433,11 +433,11 @@ public function FieldHolder() {
if($this->form) {
if(!$this->getSetting('script')) {
- $this->setVar('script',urlencode(Director::baseURL().Director::makeRelative($this->Link('upload'))));
- // long script strings cause IO error on Apple/Mac Flash platforms\
- // so parse out complextablefield
- $script = urlencode(Director::baseURL().Director::makeRelative($this->Link('upload')));
- if($pos = strpos($script,'%3Fctf')) {
+ // long flashvar strings cause IO error on Apple/Mac Flash platforms
+ // .. so parse out querystring (which may contain very long complex table field)
+
+ $script = Director::baseURL().Director::makeRelative($this->Link('upload'));
+ if($pos = strpos($script,'?')) {
$script = substr($script,0,$pos);
}
$this->setVar('script',$script);

1 comment on commit d5d0bea

hey

I think we are facing the problem that is being fixed in this commit. Do you know if it has been committed?

Cheers

Nicolaas

Please sign in to comment.