Changeset 410
- Timestamp:
- 10/29/05 14:56:29 (8 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/HtmlTidy/html-tidy-logic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/HtmlTidy/html-tidy-logic.php
r394 r410 12 12 $source = $_POST['htisource_name']; 13 13 $source = stripslashes($source); 14 14 $cwd = str_replace("\\","/",getcwd())."/"; 15 15 16 // Open a tidy process - I hope it's installed! 16 17 $descriptorspec = array( … … 18 19 1 => array("pipe", "w") 19 20 ); 20 $process = @proc_open("tidy -utf8 -config html-tidy-config.cfg", $descriptorspec, $pipes);21 $process = @proc_open("tidy -utf8 -config {$cwd}html-tidy-config.cfg", $descriptorspec, $pipes); 21 22 22 23 … … 55 56 56 57 // Split our source into an array by lines 57 $srcLines = explode("\n",$newsrc);58 $srcLines = preg_split("/\n/",$newsrc,-1,PREG_SPLIT_NO_EMPTY); 58 59 59 60 // Get only the lines between the body tags
