NarrativeWeb: Part of bug#4287: Description for the individual gallery is now escape so that for one the ampersand is taken care of.
svn: r16001
This commit is contained in:
parent
77f96037fa
commit
2f9341dcb8
@ -1506,7 +1506,7 @@ class BasePage(object):
|
|||||||
mime_type = photo.get_mime_type()
|
mime_type = photo.get_mime_type()
|
||||||
|
|
||||||
# get media description
|
# get media description
|
||||||
descr = photo.get_description()
|
descr = html_escape( photo.get_description() )
|
||||||
|
|
||||||
if mime_type:
|
if mime_type:
|
||||||
try:
|
try:
|
||||||
@ -1538,8 +1538,7 @@ class BasePage(object):
|
|||||||
newpath = newpath.replace('\\',"/")
|
newpath = newpath.replace('\\',"/")
|
||||||
|
|
||||||
# begin hyperlink
|
# begin hyperlink
|
||||||
section += self.media_link(photo_handle, newpath, descr,
|
section += self.media_link(photo_handle, newpath, descr, True, True)
|
||||||
True, True)
|
|
||||||
|
|
||||||
except (IOError, OSError), msg:
|
except (IOError, OSError), msg:
|
||||||
WarningDialog(_("Could not add photo to page"), str(msg))
|
WarningDialog(_("Could not add photo to page"), str(msg))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user