Skip to content

Commit

Permalink
Should address empty names
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed Jun 10, 2024
1 parent 35999d0 commit 4996e40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/lib/fog/system.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static function _versionCompare()
public function __construct()
{
self::_versionCompare();
define('FOG_VERSION', '1.5.10.24');
define('FOG_VERSION', '1.5.10.25');
define('FOG_SCHEMA', 270);
define('FOG_BCACHE_VER', 140);
define('FOG_CLIENT_VERSION', '0.13.0');
Expand Down
6 changes: 6 additions & 0 deletions packages/web/lib/router/route.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,12 @@ public static function edit($class, $id)
->getManager()
->exists($vars->name);
$var_name = strtolower($vars->name);
if (!$var_name) {
self::setErrorMessage(
_('A name must be defined if using the "name" property'),
HTTPResponseCodes::HTTP_FORBIDDEN
);
}
}
$uniqueNames = !in_array($classname, self::$nonUniqueNameClasses);
if ($uniqueNames
Expand Down

0 comments on commit 4996e40

Please sign in to comment.