iboboc / relay

Automatically exported from code.google.com/p/relay
MIT License
0 stars 0 forks source link

Symbolic link #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
You code don't follow symbolic link just change
I do this on v1.5.1
relay.php

line 816:
if(filetype($fullpath . '/' . $file) == 'dir') == 'link'){

by
if(filetype($fullpath . '/' . $file) == 'dir' || filetype($fullpath . '/' . 
$file) == 'link'){

or i think is better with is_dir function so
if(is_dir($fullpath . '/' . $file)){

Sorry I'm too lazy today to do a patch and is just one line...

By the way nice script! Is a nice and clean code, I like that!

Thank you

Original issue reported on code.google.com by h.ca...@codsec.com on 29 Jul 2011 at 5:44

GoogleCodeExporter commented 8 years ago
Thank you for the not-quite-patch!  Tested and accepted in trunk.

Original comment by jim.salt...@gmail.com on 31 Jul 2011 at 8:53

GoogleCodeExporter commented 8 years ago
worked nicely, thank you!

Original comment by jim.salt...@gmail.com on 31 Jul 2011 at 8:54