Skip to content

Commit

Permalink
some escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
Klap-in committed Mar 15, 2014
1 parent 8c8f824 commit e6a7406
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ protected function _htmlNamespaceInput($dest_ns, &$disablecache) {
if($this->getConf('addpage_showroot') && $can_create) {
if(empty($dest_ns)) {
// If no namespace has been provided, add an option for the root NS.
$option_text = ((@$this->getLang('namespaceRoot')) ? $this->getLang('namespaceRoot') : 'top');
$ret .= '<option ' . (($currentns == '') ? 'selected ' : '') . 'value="">' . $option_text . '</option>';
$ret .= '<option ' . (($currentns == '') ? 'selected ' : '') . 'value="">' . $this->getLang('namespaceRoot') . '</option>';
$someopt = true;
} else {
// If a namespace has been provided, add an option for it.
$ret .= '<option ' . (($currentns == $dest_ns) ? 'selected ' : '') . 'value="' . $dest_ns . '">' . $dest_ns . '</option>';
$ret .= '<option ' . (($currentns == $dest_ns) ? 'selected ' : '') . 'value="' . formText($dest_ns) . '">' . formText($dest_ns) . '</option>';
$someopt = true;
}
}
Expand Down Expand Up @@ -245,7 +244,7 @@ public function _htmlTemplateInput($newpagetemplates) {
} else {
if($cnt == 1) {
list($template, ) = $this->_parseNStemplatepage($newpagetemplates[0]);
$input = '<input type="hidden" name="newpagetemplate" value="' . $template . '" />';
$input = '<input type="hidden" name="newpagetemplate" value="' . formText($template) . '" />';
} else {
$first = true;
$input = '<select name="newpagetemplate" tabindex="3">';
Expand Down

0 comments on commit e6a7406

Please sign in to comment.