Hi!

Found it out myself. Did RTFM so to say.

The patch with shellEscape() function is attached.

Regression tested with following devices:
-dev jpeg (OK)
-dev png16m (OK)
-dev "'jpeg'" (OK, gs failed with "Unknown device")
-dev "\"'jpeg'\"" (OK, gs failed with "Unknown device")
-dev "png16m;rm -rf /dev" (OK, gs failed with "Unknown device", ran as
a user, so there were no danger in the rm command)

On 4/19/12, Ihar `Philips` Filipau <[email protected]> wrote:
> Hi!
>
> Throw at me some valid values for the -dev parameter - I'm trying to
> test the shellEscape function.
>
> It appears that wrapping in single quotes as I thought is the way to
> go - but with a special trick on who to escape single quote itself.
>
> On 4/19/12, Ihar `Philips` Filipau <[email protected]> wrote:
>> On 4/19/12, Albert Astals Cid <[email protected]> wrote:
>>> --- El jue, 19/4/12, Ihar `Philips` Filipau <[email protected]>
>>> escribió:
>>>
>>> And now realize the pdftohtml can be called from a webservice.
>>>
>


-- 
Don't walk behind me, I may not lead.
Don't walk in front of me, I may not follow.
Just walk beside me and be my friend.
    -- Albert Camus (attributed to)

Attachment: pdftohtml-shell-escape-gs-dev-003.diff
Description: Binary data

_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to