I thought this was already corrected honestly.
Do you see this code in showgallery.php?
Content visible to verified customers only.
I mean the only title which is shortened is the variable $disptitle and if I look at the contruct_newppurl lines we use $title which is the full title. $disptitle is the shortened title.