Skip to content

Commit

Permalink
[jan] SECURITY: Fix XSS vulnerability with form sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jul 4, 2017
1 parent b9d1377 commit 9e8cf9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/Form/lib/Horde/Form/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function _renderSectionTabs(&$form)
$page->addInlineScript(
sprintf('var sections_%1$s = new Horde_Form_Sections(\'%1$s\', \'%2$s\');',
$form->getName(),
addslashes($open_section)));
rawurlencode($open_section)));

/* Loop through the sections and print out a tab for each. */
echo "<div class=\"tabset\"><ul>\n";
Expand Down
4 changes: 2 additions & 2 deletions framework/Form/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] SECURITY: Fix XSS vulnerability with form sections.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -1017,7 +1017,7 @@ Converted to package.xml 2.0 for pear.horde.org
<date>2017-04-03</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] SECURITY: Fix XSS vulnerability with form sections.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 9e8cf9f

Please sign in to comment.