Yet More Philip Taylor Phun
Escape page names. Grrr.
This commit is contained in:
parent
8243cf9289
commit
609c5541b9
|
@ -77,7 +77,7 @@ class Page < ActiveRecord::Base
|
||||||
|
|
||||||
# Returns the original wiki-word name as separate words, so "MyPage" becomes "My Page".
|
# Returns the original wiki-word name as separate words, so "MyPage" becomes "My Page".
|
||||||
def plain_name
|
def plain_name
|
||||||
web.brackets_only? ? name : WikiWords.separate(name)
|
web.brackets_only? ? CGI.escapeHTML(name) : CGI.escapHTML(WikiWords.separate(name))
|
||||||
end
|
end
|
||||||
|
|
||||||
LOCKING_PERIOD = 30.minutes
|
LOCKING_PERIOD = 30.minutes
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<%
|
<%
|
||||||
@title = "Creating #{WikiWords.separate(@page_name)}"
|
@title = "Creating #{CGI.escapeHTML(WikiWords.separate(@page_name))}"
|
||||||
@content_width = 720
|
@content_width = 720
|
||||||
@hide_navigation = true
|
@hide_navigation = true
|
||||||
%>
|
%>
|
||||||
|
|
Loading…
Reference in a new issue