Are you expecting to actually serves images content from your own
application directory using this methods?, you may need to parse and clean
the HTML you are planning to serves in order to avoid those invalid HTTP
GET.


On Mon, Aug 1, 2011 at 11:45 PM, Alec Swan [via Apache Wicket] <
ml-node+3711221-2121860390-65...@n4.nabble.com> wrote:

> Hello,
>
> Our app has a basic HTML editor where users can enter some HTML code.
> Sometimes users enter something like <img src="GARBAGE">. When the
> browser displays renders the page with this HTML it treats GARBAGE as
> a relative URL. So, the browser tacks GARBAGE on to the current page
> URL causing the application to throw an error. In fact, if the current
> page URL is http://xxx/yyy/oid/1 the browser will send and HTTP
> request to http://xxx/yyy/oid/GARBAGE making it look like oid
> parameter is invalid.
>
> Is there a way to distinguish between this scenario and a scenario
> where the user did enter an invalid oid value?
>
> Thanks,
>
> Alec
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=3711221&i=0>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=3711221&i=1>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/How-to-handle-exceptions-caused-by-img-src-GARBAGE-tp3711221p3711221.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-handle-exceptions-caused-by-img-src-GARBAGE-tp3711221p3712443.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to