Opened 16 years ago

Closed 16 years ago

#52 closed defect (fixed)

Patch: HtmlTidy-Plugin in safe-mode

Reported by: Niko <ns@…> Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords: HtmlTidy


Using the HtmlTidy?-Plugin i got these php-errors:

Warning: proc_open(): SAFE MODE Restriction in effect. The script whose uid/gid is 575/534 is not allowed to access /dev/null owned by uid/gid 0/0 in .../xinha/plugins/HtmlTidy/html-tidy-logic.php on line 21

Warning: proc_open(/dev/null): failed to open stream: Success in .../xinha/plugins/HtmlTidy/html-tidy-logic.php</b> on line 21

i fixed it with this patch:

Index: html-tidy-logic.php
--- html-tidy-logic.php (Revision 3203)
+++ html-tidy-logic.php (Arbeitskopie)
@@ -15,7 +15,8 @@
        // Open a tidy process - I hope it's installed!
        $descriptorspec = array(
                0 => array("pipe", "r"),
-               1 => array("pipe", "w")
+               1 => array("pipe", "w"),
+               2 => array("file", "/dev/null", "a")
        $process = proc_open("tidy -config html-tidy-config.cfg", $descriptorspec, $pipes);

Change History (2)

comment:1 Changed 16 years ago by Niko <ns@…>

  • Summary changed from HtmlTidy-Plugin in safe-mode to Patch: HtmlTidy-Plugin in safe-mode

comment:2 Changed 16 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

You'vre reversed your diff there (the +'s were actually removed and the -'s were added), but I've applied it in changeset:30

Note: See TracTickets for help on using tickets.