Skip to content

Commit

Permalink
Corrected example loader, htmlspecialchar the source
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@202309 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
bertrand Gugger committed Dec 7, 2005
1 parent af3c663 commit dc29118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/test_Text_Wiki.php
Expand Up @@ -28,7 +28,7 @@
$_REQUEST['source'] = file_get_contents ($_REQUEST['exchoice']);
if (preg_match('#(\b'.implode('\b|\b', $plist).'\b)#i',
$_REQUEST['source'], $match)) {
$_REQUEST['parser'] = $match[1];
$_REQUEST['parser'] = ucwords(strtolower($match[1]));
}
$_REQUEST['translate'] = true;
}
Expand Down Expand Up @@ -94,6 +94,7 @@ function bldHtml($result, $plist, $rlist, $elist) {
if ($_REQUEST['render'] != 'Xhtml') {
$result = '';
}
$_REQUEST['source'] = htmlspecialchars($_REQUEST['source']);
return <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
Expand Down

0 comments on commit dc29118

Please sign in to comment.