Fixed Bug: Punctuation in page titles still problematic

Not sure if this is general, but if using apache to proxy forward onto the webrick server (as occurs on http://soks.counsell.org ), punctuation in the title sometimes stops apache from forwarding the request.

E.g. Bug: [FATAL] When renaming upload / picture pages exists, but apache doesn’t even pass the request

To be specific:

Slashes, and colons definitely work, quesion marks and square brackets definitely don’t. Others sometimes work.

Ok. The action I think I’m going to take is:
  1. Try and get the wiki to accept question marks by grabbing it back from Webrick’s form parsing
  2. Have the wiki replace square brackets so that you can always access a page you have created.

In the mean time, you can create a warning for users by adding:


    <script language='javascript' type='text/javascript' >
        function validateTitle( proposed_title ) {
            var illegalcharacters = /[\\\[\]\?<>&\^]/;
            if (illegalcharacters.test( proposed_title ) == true ) {
                alert( "Unfortunately the characters []?\ in titles cause problems with Soks. Please try not to use them");
            //    return false;
            }
            //return true;
        }
    </script>

in the <head></head> of your views/frame.rhtml file, and then add an:

onBlur="validateTitle( this.value );"

to the end of the title input boxes in your views/Page_edit.rhtml and views/UploadPage_edit.rhtml


How would you modify the javascript regexp to also include an ampersand character, i.e., does it need to be escaped? ( bug: ampersand in page name creates missing links that work)—Bil Updated above—tamc2 Need to also update the message?—Bil

This has been fixed in v-0-0-6.

Edit this page or watch for changes using RSS.