wood burning stoves 2.0*
The moose likes Ranch Office and the fly likes Ranch admins - flaw in the validation logic for a message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Ranch admins - flaw in the validation logic for a message" Watch "Ranch admins - flaw in the validation logic for a message" New topic
Author

Ranch admins - flaw in the validation logic for a message

Larry Olson
Ranch Hand

Joined: Feb 03, 2009
Posts: 142
Hi Ranch admins,

I don't know where to post this, so I am posting this here.

I am trying to post a message in the SCWCD forum to ask the folks over there if the link/url to a page I have is the correct/current/latest/official link for the SCWCD objectives. But unfortunately that link/url contains a word that isn't accepted by the submission script. But the problem is that the submit process fails to recognize the fact that this word is part of the URL and should be allowed to be posted!!! I tried putting it in URL tag, code tag and all other tags...but it still won't allow me to post.

OK, here is the link: The only difference is that I have replaced the word by "p l s", by introducing spaces between the letters...

http://education.oracle.com/p l s/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_858

This is a flaw in the validation logic. Please get this fixed...so that I could post the message. The error message I received is (again I have put "p l s"):

We're sorry, but your post appears to contain abbreviations that we don't like people to use at the Ranch. Because JavaRanch is an international forum, many of our members are not native English speakers. For that reason, it's important that we all try to write clear, standard English, and avoid abbreviations and SMS shortcuts. See here for more of an explanation. Thanks for understanding.

If the abbreviation occurs within code, you can use code tags to post it successfully.

The specific error message is: "p l s" is a silly English abbreviation; use "please" instead.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Moved to Ranch Office


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

When you need to post a character that the "l33t" filter won't let though, you can substitute the character with its HTML entity equivalent.

It's easy: &#nn; where nn is the decimal ASCII value for the character. For example to post R enter R

For the small "p" in pls, use p
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

It was added to our bug list earlier in the week.

The workarounds are what Bear said or to use the [ url ] tag. Click the URL button and it prompts you for a link and description. The URL tag's link part isn't checked for p l s.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Larry Olson
Ranch Hand

Joined: Feb 03, 2009
Posts: 142
Hi,

Thanks. But that doesn't work. Here is the URL I am posting by replacing the letters in "p l s" by the corresponding HTML entity equivalent. But the problem is when I surround it by URL tags and when the final link gets posted and you click on it, it literally translates into those entity characters and doesn't translate back to "p l s", without spaces.

i.e. when you click on it, you will land into

http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_858

and not

http://education.oracle.com/p l s/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_858

Do you see the problem here?
Larry Olson
Ranch Hand

Joined: Feb 03, 2009
Posts: 142
OK, got around this by clicking on the "URL" and using scripting...thanks.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Fixed. Now "p l s" only triggers if not on a word boundary.

http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_85
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ranch admins - flaw in the validation logic for a message
 
Similar Threads
Migrating from Java
Not Able to Post a new Thread....in MD
populate items using struts2 <s:select>
Strange thing about abbreviations in post
Silly Posting Rules