Skip to content
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

Tests about XSS - Switch from iframe to object #5260

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/qgis-projects/tests/xss.qgs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,12 @@ def my_form_open(dialog, layer, feature):
<dataDefinedFieldProperties></dataDefinedFieldProperties>
<widgets></widgets>
<previewExpression>"ID"</previewExpression>
<mapTip enabled="1">&lt;iframe src="[% "media" %]" width="100%" height="500px"&gt;&lt;/iframe&gt;</mapTip>
<mapTip enabled="1">&lt;object data="[% "media" %]" type="application/pdf" width="100%" height="500px"&gt;
&lt;p&gt;
You don't have a PDF plugin, but you can
&lt;a href="[% "media" %]"&gt;download the PDF file. &lt;/a&gt;
&lt;/p&gt;
&lt;/object&gt;</mapTip>
</maplayer>
<maplayer autoRefreshMode="Disabled" autoRefreshTime="0" geometry="Point" hasScaleBasedVisibilityFlag="0" labelsEnabled="0" legendPlaceholderImage="" maxScale="0" minScale="100000000" readOnly="0" refreshOnNotifyEnabled="0" refreshOnNotifyMessage="" simplifyAlgorithm="0" simplifyDrawingHints="0" simplifyDrawingTol="1" simplifyLocal="0" simplifyMaxScale="1" styleCategories="AllStyleCategories" symbologyReferenceScale="-1" type="vector" wkbType="Point">
<extent>
Expand Down
2 changes: 1 addition & 1 deletion tests/qgis-projects/tests/xss.qgs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"link": "",
"minScale": 1,
"maxScale": 1000000000000,
"toggled": "False",
"toggled": "True",
"popup": "True",
"popupSource": "qgis",
"popupTemplate": "",
Expand Down
Loading