[FIXED HUDSON-5072] use Util.rawEncode in getViewUrl so spaces are encoded

(as done in AbstractItem.getShortUrl)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24707 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2009-12-19 01:04:32 +00:00
1 parent 66acb4d739
commit d08181bb82
1 file changed
+1 -1
+1 -1
View File
@@ -297,7 +297,7 @@ public abstract class View extends AbstractModelObject implements AccessControll
* even for the default view.
*/
public String getViewUrl() {
return (owner!=null ? owner.getUrl() : "") + "view/" + getViewName() + '/';
return (owner!=null ? owner.getUrl() : "") + "view/" + Util.rawEncode(getViewName()) + '/';
}
public String getSearchUrl() {