Skip to content

Commit

Permalink
Merge pull request #396 from gouttegd/fix-cgi-escape
Browse files Browse the repository at this point in the history
Replace cgi.escape by html.escape.
  • Loading branch information
jburel authored Sep 14, 2020
2 parents 9fb2e38 + a004e3c commit 632f387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import logging
import json
import numpy
import cgi
import html

from datetime import datetime
import os
Expand Down Expand Up @@ -301,7 +301,7 @@ def panel_to_page_coords(self, shape_x, shape_y):

def draw_shape_label(self, shape, bounds):
center = bounds.get_center()
text = cgi.escape(shape.get('text', ''))
text = html.escape(shape.get('text', ''))
if not text or not center:
return
size = shape.get('fontSize', 12) * 2 / 3
Expand Down

0 comments on commit 632f387

Please sign in to comment.