[Owncloud] Bug with zeros in filenames + Hack to solve it

eMerzh merzhin at gmail.com
Fri Nov 4 22:47:17 UTC 2011


Ouch... again a bug for me :s
Sorry about that... i swear, i've tested my patch :p
the data function of jquery tried to convert the "0"+numbers into an int...

So it should be fixed with my last commit...


On Thu, Nov 3, 2011 at 16:17, Maximilian Ernestus
<maximilian at ernestus.de> wrote:
> Hi guys,
>
> there are some bugs when a file starts with a zero "0" and contains no other
> letters (numbers only). I don't know why. But a guy from the irc gave me
> some hints so I found this hack to solve it:
> Add
> if(substr($filename, 0, 1) === "0") $file['name']="/".$filename;
>
> just after
>
> $file['name']=$filename;
>
> around line 50 in lib/files.php.
>
> That puts a slash in front of the "badly" named files. It is ugly but it
> works.
> Please keep me updated when you fix the bug in a nicer way.
>
> Greetings,
>
>
> Maximilian
>
> P.S.: Thanks for the great software.
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>



More information about the Owncloud mailing list