For the Google Docs preview to work, I change line 2738 on wpfib.php from
."<a href='https://docs.google.com/viewer?url=".urlencode($base_url.$dir_relpath.DS.$a_file["name"])."' target='_blank'>"
to
."<a href='https://docs.google.com/viewer?url=".$file_link_href_nonced."' target='_blank'>"
and for the image preview to work change line item 2754 on the same file to;
."href=\"".$dir_path.DS.$a_file["name"]."\">"
to
."href=\"".$file_link_href_nonced."\">"