Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
646fe095
Commit
646fe095
authored
10 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-1070: remove escaping in input fields of the metadata form
parent
3cb08a04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/commons/modules/bc/meta/MetaInfoFormController.java
+9
-9
9 additions, 9 deletions
.../core/commons/modules/bc/meta/MetaInfoFormController.java
with
9 additions
and
9 deletions
src/main/java/org/olat/core/commons/modules/bc/meta/MetaInfoFormController.java
+
9
−
9
View file @
646fe095
...
...
@@ -197,27 +197,27 @@ public class MetaInfoFormController extends FormBasicController {
MetaInfo
meta
=
item
==
null
?
null
:
metaInfoFactory
.
createMetaInfoFor
((
OlatRelPathImpl
)
item
);
// title
String
titleVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getTitle
()
:
null
);
String
titleVal
=
(
meta
!=
null
?
meta
.
getTitle
()
:
null
);
title
=
uifactory
.
addTextElement
(
"title"
,
"mf.title"
,
-
1
,
titleVal
,
formLayout
);
// comment/description
String
commentVal
=
StringHelper
.
xssScan
(
meta
!=
null
?
meta
.
getComment
()
:
null
);
String
commentVal
=
(
meta
!=
null
?
meta
.
getComment
()
:
null
);
comment
=
uifactory
.
addTextAreaElement
(
"comment"
,
"mf.comment"
,
-
1
,
3
,
1
,
true
,
commentVal
,
formLayout
);
// creator
String
creatorVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getCreator
()
:
null
);
String
creatorVal
=
(
meta
!=
null
?
meta
.
getCreator
()
:
null
);
creator
=
uifactory
.
addTextElement
(
"creator"
,
"mf.creator"
,
-
1
,
creatorVal
,
formLayout
);
// publisher
String
publisherVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getPublisher
()
:
null
);
String
publisherVal
=
(
meta
!=
null
?
meta
.
getPublisher
()
:
null
);
publisher
=
uifactory
.
addTextElement
(
"publisher"
,
"mf.publisher"
,
-
1
,
publisherVal
,
formLayout
);
// source/origin
String
sourceVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getSource
()
:
null
);
String
sourceVal
=
(
meta
!=
null
?
meta
.
getSource
()
:
null
);
source
=
uifactory
.
addTextElement
(
"source"
,
"mf.source"
,
-
1
,
sourceVal
,
formLayout
);
// city
String
cityVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getCity
()
:
null
);
String
cityVal
=
(
meta
!=
null
?
meta
.
getCity
()
:
null
);
city
=
uifactory
.
addTextElement
(
"city"
,
"mf.city"
,
-
1
,
cityVal
,
formLayout
);
// publish date
...
...
@@ -235,15 +235,15 @@ public class MetaInfoFormController extends FormBasicController {
publicationYear
.
setDisplaySize
(
4
);
// number of pages
String
pageVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getPages
()
:
null
);
String
pageVal
=
(
meta
!=
null
?
meta
.
getPages
()
:
null
);
pages
=
uifactory
.
addTextElement
(
"pages"
,
"mf.pages"
,
-
1
,
pageVal
,
formLayout
);
// language
String
langVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getLanguage
()
:
null
);
String
langVal
=
(
meta
!=
null
?
meta
.
getLanguage
()
:
null
);
language
=
uifactory
.
addTextElement
(
"language"
,
"mf.language"
,
-
1
,
langVal
,
formLayout
);
// url/link
String
urlVal
=
StringHelper
.
escapeHtml
(
meta
!=
null
?
meta
.
getUrl
()
:
null
);
String
urlVal
=
(
meta
!=
null
?
meta
.
getUrl
()
:
null
);
url
=
uifactory
.
addTextElement
(
"url"
,
"mf.url"
,
-
1
,
urlVal
,
formLayout
);
/* static fields */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment