Skip to content

Commit

Permalink
5769 urlencode GET var passed into language editor template
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Mar 4, 2017
1 parent 2c0738b commit 19b4164
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . urlencode($_GET['lang_code']); ?>">

<input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . urlencode($_GET['lang_code']); ?>">

<input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . urlencode($_GET['lang_code']); ?>">

<input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />

Expand Down

0 comments on commit 19b4164

Please sign in to comment.