mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
fix QUERY_STRING to only have the image request
This commit is contained in:
parent
6883a60f5d
commit
e29e3a5cba
@ -526,12 +526,16 @@ import base64
|
|||||||
@authorized_personnel_only
|
@authorized_personnel_only
|
||||||
def mailgraph():
|
def mailgraph():
|
||||||
if request.query_string:
|
if request.query_string:
|
||||||
app.logger.error("QUERY_STRING=%s" % request.query_string)
|
query = request.query_string
|
||||||
|
if '&' in query:
|
||||||
|
query = query.split('&')[0]
|
||||||
|
|
||||||
|
app.logger.error("QUERY_STRING=%s" % query)
|
||||||
|
|
||||||
code, bin_out = utils.shell(
|
code, bin_out = utils.shell(
|
||||||
"check_output",
|
"check_output",
|
||||||
["/usr/share/mailgraph/mailgraph.cgi"],
|
["/usr/share/mailgraph/mailgraph.cgi"],
|
||||||
env={"QUERY_STRING": request.query_string},
|
env={"QUERY_STRING": query},
|
||||||
return_bytes=True,
|
return_bytes=True,
|
||||||
trap=True
|
trap=True
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user