Skip to content

Commit

Permalink
Merge pull request otale#49 from pkwenda/master
Browse files Browse the repository at this point in the history
🦄  fix otale#44 validate 'site_url's String
  • Loading branch information
nonacosa authored Feb 27, 2017
2 parents 419dddc + fd35bfb commit f9d1c2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/tale/controller/InstallController.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public RestResponse doInstall(@QueryParam String site_title, @QueryParam String
if (site_url.endsWith("/")) {
site_url = site_url.substring(0, site_url.length() - 1);
}
if (!site_url.startsWith("http")) {
site_url = "http://".concat(site_url);
}
optionsService.saveOption("site_title", site_title);
optionsService.saveOption("site_url", site_url);

Expand Down

0 comments on commit f9d1c2b

Please sign in to comment.