mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
bug 550: check that remote site url is not empty
git-svn-id: http://piwigo.org/svn/trunk@1654 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
0ad7985abc
commit
51e56e9c1f
1 file changed
+2
-1
@@ -82,7 +82,8 @@ $template->set_filenames(array('site_manager'=>'admin/site_manager.tpl'));
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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']);
|
||||
|
||||
Reference in new issue
Block a user