Ticket #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 |
| Cc: |
Description
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
Note: See
TracTickets for help on using
tickets.
