Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
032b9593
Commit
032b9593
authored
Dec 30, 2008
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 105960: xml.cgi generates invalid XML - Patch by Kip Hampton…
Bug 105960: xml.cgi generates invalid XML - Patch by Kip Hampton <khampton@totalcinema.com> r/a=mkanat
parent
0497adba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Util.pm
Bugzilla/Util.pm
+10
-0
No files found.
Bugzilla/Util.pm
View file @
032b9593
...
@@ -201,6 +201,16 @@ sub xml_quote {
...
@@ -201,6 +201,16 @@ sub xml_quote {
$var
=~
s/>/\>/g
;
$var
=~
s/>/\>/g
;
$var
=~
s/\"/\"/g
;
$var
=~
s/\"/\"/g
;
$var
=~
s/\'/\'/g
;
$var
=~
s/\'/\'/g
;
# the following nukes characters disallowed by the XML 1.0
# spec, Production 2.2. 1.0 declares that only the following
# are valid:
# (#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF])
$var
=~
s/([\x{0001}-\x{0008}]|
[\x{000B}-\x{000C}]|
[\x{000E}-\x{0019}]|
[\x{D800}-\x{DFFF}]|
[\x{FFFE}-\x{FFFF}])//gx
;
return
$var
;
return
$var
;
}
}
...
...
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