0000945: Flexshare exists error reported when name of Flexshare is contained in another definition
Description
Line 316-325 in Flexshare.class.php
# Check for non-uniques
try {
$file->LookupLine("<Share $name>");
throw new EngineException (FLEXSHARE_LANG_ERRMSG_SHARE_EXISTS, COMMON_ERROR);
} catch (FileNoMatchException $e) {
# This is OK - no flexshare defined
} catch (Exception $e) {
throw new EngineException ($e->GetMessage(), COMMON_ERROR);
}
Should be:
# Check for non-uniques
try {
if (count($file->GetSearchResults("<Share $name>")) > 0)
throw new EngineException (FLEXSHARE_LANG_ERRMSG_SHARE_EXISTS, COMMON_ERROR);
} catch (Exception $e) {
throw new EngineException ($e->GetMessage(), COMMON_ERROR);
}