Skip to content

Commit

Permalink
bug 550: check that remote site url is not empty
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@1654 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Dec 13, 2006
1 parent 0ad7985 commit 51e56e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/site_manager.php
Expand Up @@ -82,7 +82,8 @@ function remote_output($url)
// +-----------------------------------------------------------------------+
// | new site creation form |
// +-----------------------------------------------------------------------+
if (isset($_POST['submit']))
if (isset($_POST['submit']) and !empty($_POST['galleries_url'])
and !is_adviser() )
{
$is_remote = url_is_remote( $_POST['galleries_url'] );
$url = preg_replace('/[\/]*$/', '', $_POST['galleries_url']);
Expand Down

0 comments on commit 51e56e9

Please sign in to comment.