-
Notifications
You must be signed in to change notification settings - Fork 62
Fixes incorrect escaping of apostrophes and accents #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Herafia
wants to merge
5
commits into
main
Choose a base branch
from
fix/incorrect-escaping-apostrophes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
381d4a9
Fixes incorrect escaping of apostrophes and accents
Herafia 97deced
CHANGELOG
Herafia cf3f6c2
PR : Fix responsible group visibility after injection (#607)
Neu-Maximilian 935db0f
twig
Herafia e11c137
Merge branch 'main' into fix/incorrect-escaping-apostrophes
Herafia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| {# | ||
| # ------------------------------------------------------------------------- | ||
| # DataInjection plugin for GLPI | ||
| # ------------------------------------------------------------------------- | ||
| # | ||
| # LICENSE | ||
| # | ||
| # This file is part of DataInjection. | ||
| # | ||
| # DataInjection is free software; you can redistribute it and/or modify | ||
| # it under the terms of the GNU General Public License as published by | ||
| # the Free Software Foundation; either version 2 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # DataInjection is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with DataInjection. If not, see <http://www.gnu.org/licenses/>. | ||
| # ------------------------------------------------------------------------- | ||
| # @copyright Copyright (C) 2007-2023 by DataInjection plugin team. | ||
| # @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html | ||
| # @link https://github.com/pluginsGLPI/datainjection | ||
| # ------------------------------------------------------------------------- | ||
| #} | ||
|
|
||
| <form method="post" name="form" action="{{ form_action }}"> | ||
| <input type="hidden" name="_glpi_csrf_token" value="{{ csrf_token() }}"> | ||
| {% if show_preview %} | ||
| <table class="tab_cadre_fixe"> | ||
| <tr class="tab_bg_1"> | ||
| <td class="center"> | ||
| <a href="#" onclick="var w = window.open('{{ preview_url }}', 'glpipopup', 'height=400, width=600, top=100, left=100, scrollbars=yes'); w.focus(); return false;"> | ||
| {{ __('See the file', 'datainjection') }} | ||
| </a> | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| {% endif %} | ||
|
|
||
| <table class="tab_cadre_fixe"> | ||
| <tr> | ||
| <th>{{ __('Header of the file', 'datainjection') }}</th> | ||
| <th>{{ __('Tables', 'datainjection') }}</th> | ||
| <th>{{ _n('Field', 'Fields', 2) }}</th> | ||
| <th>{{ __('Link field', 'datainjection') }}</th> | ||
| </tr> | ||
|
|
||
| {% for mapping in mappings %} | ||
| <tr class="tab_bg_1"> | ||
| <td class="center">{{ mapping.name }}</td> | ||
| <td class="center">{{ mapping.dropdown_html|raw }}</td> | ||
| <td class="center"><span id="span_field_{{ mapping.id }}"></span></td> | ||
| <td class="center"><span id="span_mandatory_{{ mapping.id }}"></span></td> | ||
| </tr> | ||
| {% endfor %} | ||
|
|
||
| {% if canedit %} | ||
| <tr> | ||
| <td class="tab_bg_2 center" colspan="4"> | ||
| <input type="hidden" name="models_id" value="{{ model_id }}"> | ||
| <input type="submit" name="update" value="{{ __('Save') }}" class="btn btn-primary"> | ||
| </td> | ||
| </tr> | ||
| {% endif %} | ||
| </table> | ||
| </form> | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a good opportunity to convert this function to Twig to eliminate the echo?