summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/local/www/pkg.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/pkg.php b/src/usr/local/www/pkg.php
index c8b09e0..ac085b4 100755
--- a/src/usr/local/www/pkg.php
+++ b/src/usr/local/www/pkg.php
@@ -80,10 +80,8 @@ if ($xml == "") {
$pkg_realpath = realpath($pkg_full_path);
if (empty($pkg_realpath)) {
$path_error = sprintf(gettext("ERROR: Package path %s not found."), htmlspecialchars($pkg_full_path));
- } else {
- if (substr_compare($pkg_realpath, $pkg_xml_prefix, 0, strlen($pkg_xml_prefix))) {
- $path_error = sprintf(gettext("ERROR: Invalid path %s specified."), htmlspecialchars($pkg_full_path));
- }
+ } else if (substr_compare($pkg_realpath, $pkg_xml_prefix, 0, strlen($pkg_xml_prefix))) {
+ $path_error = sprintf(gettext("ERROR: Invalid path %s specified."), htmlspecialchars($pkg_full_path));
}
if (!empty($path_error)) {
OpenPOWER on IntegriCloud