- Timestamp:
- Sep 30, 2006, 11:46:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/toilet.html
r1167 r1168 46 46 47 47 <? $submit = $_POST['submit']; 48 $text = substr( $_POST['text'], 0, 30);48 $text = substr(stripslashes($_POST['text']), 0, 40); 49 49 $font = $_POST['font']; 50 50 $fontlist = array('emboss', 'emboss2', 'smbraille'); … … 67 67 <blockquote> 68 68 <p><pre> 69 <? exec($path.'/src/toilet -d '.$path.'/fonts -f "'.$fontlist[$font].'" "'.escapeshellcmd($text).'"| sed "s/\x1b[^m]*m//g"', &$result);69 <? exec($path.'/src/toilet -d '.$path.'/fonts -f "'.$fontlist[$font].'" '.escapeshellarg($text).' | sed "s/\x1b[^m]*m//g"', &$result); 70 70 foreach($result as $line) 71 71 echo "\n".htmlspecialchars($line);
Note: See TracChangeset
for help on using the changeset viewer.