fixed: Viewing a Gallery File with non-ASCII keywords crashes

This commit is contained in:
Graham Knop 2010-03-31 11:49:54 -05:00
parent 3b3347c4a8
commit 9dc6c29419
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@
- fixed #11492: photo details
- fixed #11503: Gallery: Wrong owner after uploading of ZIP archives
- fixed #11494: Error message on mysql down
- fixed: Viewing a Gallery File with non-ASCII keywords crashes
7.9.1
- fixed #11464: blank page after setting posts per page in Collaboration System to 0 (zero)

View file

@ -901,13 +901,13 @@ sub view {
keyword => $keyword,
url_searchKeyword
=> $self->getGallery->getUrl(
"func=search;submit=1;keywords=" . uri_escape($keyword)
"func=search;submit=1;keywords=" . uri_escape_utf8($keyword)
),
url_searchKeywordUser
=> $self->getGallery->getUrl(
"func=search;submit=1;"
. "userId=" . $self->get("ownerUserId") . ';'
. 'keywords=' . uri_escape( $keyword )
. 'keywords=' . uri_escape_utf8( $keyword )
),
};
}