Skip to content

Commit

Permalink
Revert "fix tinyfilemanager bug"
Browse files Browse the repository at this point in the history
This reverts commit ffc3502.
Bug fixed: prasathmani/tinyfilemanager#896
  • Loading branch information
muink committed Feb 19, 2023
1 parent 1dceda5 commit 1742420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions makenew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ sed -i "s|\$FM_HIGHLIGHTJS_STYLE|<?php echo FM_HIGHLIGHTJS_STYLE ?>|g" "$PKG_DIR
#sed -i "/jquery.slim.min.js/,/}/ {s|bootstrap.min.js|bootstrap.slim.min.js|}" "$PKG_DIR/$INDEXPHP"
sed -Ei "/<link rel=\"(preconnect|dns-prefetch)\"/d" "$PKG_DIR/$INDEXPHP"

# Fix
sed -Ei "/^\/\/ Auth/,/^}/{/\/\/ Logging In/,/\/\/ Form/{s|(fm_redirect\()FM_ROOT_URL \. |\1|g}}" "$PKG_DIR/$INDEXPHP"
# Hotfix

# Migrating to Local Reference
sed -Ei "s,^(.+=\")(http(s)?://.+/)([^/]+\.(css|js))(\".+),\1\5/\4\6," "$PKG_DIR/$INDEXPHP"
Expand Down
3 changes: 1 addition & 2 deletions root/usr/libexec/tinyfilemanager-update
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ done
sed -i "s|\$FM_HIGHLIGHTJS_STYLE|<?php echo FM_HIGHLIGHTJS_STYLE ?>|g" /tmp/$PKG_DIR/$INDEXPHP
sed -Ei "/<link rel=\"(preconnect|dns-prefetch)\"/d" /tmp/$PKG_DIR/$INDEXPHP

# Fix
sed -Ei "/^\/\/ Auth/,/^}/{/\/\/ Logging In/,/\/\/ Form/{s|(fm_redirect\()FM_ROOT_URL \. |\1|g}}" /tmp/$PKG_DIR/$INDEXPHP
# Hotfix

# Migrating to Local Reference
sed -Ei "s,^(.+=\")(http(s)?://)(.+\.(css|js))(\".+),\1$REF_DIR/\4\6," /tmp/$PKG_DIR/$INDEXPHP
Expand Down

0 comments on commit 1742420

Please sign in to comment.