Mageia Bugzilla – Attachment 7285 Details for
Bug 17331
python-pygments new shell injection security issue (CVE-2015-8557)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Specimen python script for testing pygmentize
testscript.py (text/x-python), 202 bytes, created by
Len Lawrence
on 2015-12-17 01:14:51 CET
(
hide
)
Description:
Specimen python script for testing pygmentize
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2015-12-17 01:14:51 CET
Size:
202 bytes
patch
obsolete
>from pygments import highlight >from pygments.lexers import PythonLexer >from pygments.formatters import HtmlFormatter > >code = 'print "Hello World"' >print highlight(code, PythonLexer(), HtmlFormatter()) >
from pygments import highlight from pygments.lexers import PythonLexer from pygments.formatters import HtmlFormatter code = 'print "Hello World"' print highlight(code, PythonLexer(), HtmlFormatter())
View Attachment As Raw
Actions:
View
Attachments on
bug 17331
: 7285 |
7288