encode quotes

fixes #248
This commit is contained in:
Claude 2015-01-27 13:53:12 +01:00
parent 64a5a097d1
commit 59c93e8faa
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ $this->carabiner->css('diff.css');
$this->carabiner->display('css');
$searchparams = ($this->input->get('search') ? '?search=' . $this->input->get('search') : '');
$searchparams = str_replace('"', '"', $searchparams);
?>
<script type="text/javascript">

View File

@ -3,7 +3,7 @@
<div class="item">
<label for="search"><?php echo lang('paste_search'); ?>
</label>
<input type="text" name="search" value="<?php echo $this->input->get('search'); ?>" id="search" maxlength="100" tabindex="1" />
<input type="text" name="search" value="<?php echo str_replace('"', '&quot;', $this->input->get('search')); ?>" id="search" maxlength="100" tabindex="1" />
</div>
</div>
</form>