[EFL] Sanitize URLs in EWebLauncher / Minibrowser
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Sep 2012 11:44:12 +0000 (11:44 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Sep 2012 11:44:12 +0000 (11:44 +0000)
commitd95383354cd4ebc3cebbdab4b5f563d7add18933
tree3e771e8734a635eba7a21601f69394c6b4578743
parentb6f99d9af826637da403095d73c6c65b70fe278f
[EFL] Sanitize URLs in EWebLauncher / Minibrowser
https://bugs.webkit.org/show_bug.cgi?id=95849

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-06
Reviewed by Kenneth Rohde Christiansen.

Sanitize URLs passed by the user as program
argument or typed in the URL bar in order to
be more tolerant.

* EWebLauncher/CMakeLists.txt:
* EWebLauncher/main.c:
(main):
* EWebLauncher/url_bar.c:
(_url_bar_url_get_with_protocol):
(on_urlbar_key_down):
* EWebLauncher/url_utils.c: Added.
(has_scheme):
(url_from_user_input): Add utility function to construct a
URL from user input.
* EWebLauncher/url_utils.h: Added.
* MiniBrowser/efl/CMakeLists.txt:
* MiniBrowser/efl/main.c:
(main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@127729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/EWebLauncher/CMakeLists.txt
Tools/EWebLauncher/main.c
Tools/EWebLauncher/url_bar.c
Tools/EWebLauncher/url_utils.c [new file with mode: 0644]
Tools/EWebLauncher/url_utils.h [new file with mode: 0644]
Tools/MiniBrowser/efl/CMakeLists.txt
Tools/MiniBrowser/efl/main.c