Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
29f8dda3
Commit
29f8dda3
authored
Aug 23, 2020
by
Martin Tobias Holmedahl Sandsmark
Committed by
Kurt Hindenburg
Nov 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable URL escape sequences by default, add warning
parent
c33eba8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
src/profile/Profile.cpp
src/profile/Profile.cpp
+1
-1
src/widgets/EditProfileMousePage.ui
src/widgets/EditProfileMousePage.ui
+23
-7
No files found.
src/profile/Profile.cpp
View file @
29f8dda3
...
...
@@ -233,7 +233,7 @@ void Profile::useFallback()
setProperty
(
WordCharacters
,
QStringLiteral
(
":@-./_~?&=%+#"
));
setProperty
(
TabColor
,
QColor
(
QColor
::
Invalid
));
setProperty
(
AllowEscapedLinks
,
tru
e
);
setProperty
(
AllowEscapedLinks
,
fals
e
);
setProperty
(
EscapedLinksSchema
,
QStringLiteral
(
"http://;https://;file://"
));
setProperty
(
VerticalLine
,
false
);
setProperty
(
VerticalLineAtChar
,
80
);
...
...
src/widgets/EditProfileMousePage.ui
View file @
29f8dda3
...
...
@@ -273,14 +273,14 @@
</property>
</spacer>
</item>
<item
row=
"
4
"
column=
"2"
>
<item
row=
"
5
"
column=
"2"
>
<widget
class=
"QLineEdit"
name=
"linkEscapeSequenceTexts"
>
<property
name=
"toolTip"
>
<string>
The formats of possible links, like http://, https:// and file://
</string>
</property>
</widget>
</item>
<item
row=
"
6
"
column=
"0"
colspan=
"4"
>
<item
row=
"
7
"
column=
"0"
colspan=
"4"
>
<widget
class=
"QCheckBox"
name=
"ctrlRequiredForDragButton"
>
<property
name=
"toolTip"
>
<string>
Selected text will require control key plus click to drag.
</string>
...
...
@@ -290,7 +290,7 @@
</property>
</widget>
</item>
<item
row=
"
9
"
column=
"0"
colspan=
"4"
>
<item
row=
"
10
"
column=
"0"
colspan=
"4"
>
<widget
class=
"QCheckBox"
name=
"enableAlternateScrollingButton"
>
<property
name=
"toolTip"
>
<string>
Mouse scroll wheel will emulate up/down key presses in programs that use the Alternate Screen buffer (e.g. less)
</string>
...
...
@@ -326,7 +326,7 @@
</property>
</spacer>
</item>
<item
row=
"
5
"
column=
"0"
colspan=
"4"
>
<item
row=
"
6
"
column=
"0"
colspan=
"4"
>
<widget
class=
"QCheckBox"
name=
"underlineFilesButton"
>
<property
name=
"toolTip"
>
<string>
Text recognized as a file will be underlined when hovered by the mouse pointer.
</string>
...
...
@@ -336,7 +336,7 @@
</property>
</widget>
</item>
<item
row=
"
7
"
column=
"0"
colspan=
"4"
>
<item
row=
"
8
"
column=
"0"
colspan=
"4"
>
<widget
class=
"QCheckBox"
name=
"dropUrlsAsText"
>
<property
name=
"toolTip"
>
<string>
Always paste dropped files and URLs as text without offering move, copy and link actions.
</string>
...
...
@@ -353,7 +353,23 @@
</property>
</widget>
</item>
<item
row=
"8"
column=
"0"
colspan=
"4"
>
<item
row=
"4"
column=
"1"
colspan=
"3"
>
<widget
class=
"QLabel"
name=
"allowLinkEscapeSequenceButtonWarning"
>
<property
name=
"text"
>
<string>
<
b
>
WARNING
<
/b
>
: This has security implications as it allows malicious URLs to be shown as another URL or hidden.
<
br
>
Make sure you understand the implications before turning this on.
</string>
</property>
<property
name=
"wordWrap"
>
<bool>
true
</bool>
</property>
<property
name=
"textFormat"
>
<enum>
Qt::RichText
</enum>
</property>
<property
name=
"wordWrap"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"9"
column=
"0"
colspan=
"4"
>
<widget
class=
"QCheckBox"
name=
"enableMouseWheelZoomButton"
>
<property
name=
"toolTip"
>
<string>
Pressing Ctrl+scrollwheel will increase/decrease the text size.
</string>
...
...
@@ -363,7 +379,7 @@
</property>
</widget>
</item>
<item
row=
"
4
"
column=
"1"
>
<item
row=
"
5
"
column=
"1"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Allowed link formats
</string>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment