Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: Error with file names that contain - character

Error with file names that contain - character 27 Jun 2016 16:32 #2227

  • Yild
  • Yild's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 3
Hello

I have found an error in Adapter_Search_Lucene_Document_DOC.php

in line 173 there is an popen function that execute antiword command but it fails when filename contain '-' character, i.e my-file-name.doc

this file name will be treated as it ware a command line params: -file -name.doc and it will fail to execute.

ATM code is like this:
$handle = popen("{$antiword}". DIRECTORY_SEPARATOR ."antiword {$encoding} {$this->getFilename()}", 'r');

to correct this it should look like:
$handle = popen("{$antiword}". DIRECTORY_SEPARATOR ."antiword {$encoding} "\{$this->getFilename()}\" ", 'r');

and this change has to be applied to every popen function call (win, osx, lin).



(found this error when my cron script failed to index new files uploaded to server)
The administrator has disabled public write access.
The following user(s) said Thank You: Giampaolo

Error with file names that contain - character 05 Jul 2016 20:14 #2230

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Thanks,
we hope to release the bugfix as soon as possible.

Thanks again.
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.