]> git.plutz.net Git - busy/blobdiff - actions/wikimeta.sh
cleared HTTP syntax in Location forward
[busy] / actions / wikimeta.sh
index 74b8ac963560b80359e6ef1c5d447295e741c7ec..51236c9135599d7bc5fc61511016f61dc7f4415b 100755 (executable)
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Busy.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU Affero General Public License
 # along with Busy.  If not, see <http://www.gnu.org/licenses/>.
 
-$ACL_WIKIEDIT || echo "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+$ACL_WIKIEDIT || echo "Location: ?p=Error&i=noaccess\n\n"
 $ACL_WIKIEDIT || exit 0 
 
 info="$(egrep -o '(^|&)i=[0-9]{10}_[0-9]{3}(&|$)' <<<"${QUERY_STRING}" |tr -d '&i=')"
 $ACL_WIKIEDIT || exit 0 
 
 info="$(egrep -o '(^|&)i=[0-9]{10}_[0-9]{3}(&|$)' <<<"${QUERY_STRING}" |tr -d '&i=')"
@@ -38,12 +38,12 @@ if [ -z "$cancel" -a -n "$comment" ]; then
   touch "$_DATA/Wiki/$info"
   echo -e "author=${USER}" > "$commfile"
   echo -e "${comment}" >> "$commfile"
   touch "$_DATA/Wiki/$info"
   echo -e "author=${USER}" > "$commfile"
   echo -e "${comment}" >> "$commfile"
-  echo -n "Location: //${HTTP_HOST}/?p=Wiki&i=$info\n\n"
+  echo -n "Location: ?p=Wiki&i=$info\n\n"
 elif [ -z "$cancel" -a -n "$description" ]; then
   touch "$_DATA/Wiki/$info"
   echo -e "title=${title}" > "$descfile"
   echo -e "description=${description}" >> "$descfile"
 elif [ -z "$cancel" -a -n "$description" ]; then
   touch "$_DATA/Wiki/$info"
   echo -e "title=${title}" > "$descfile"
   echo -e "description=${description}" >> "$descfile"
-  echo -n "Location: //${HTTP_HOST}/?p=Wiki#$anchor\n\n"
+  echo -n "Location: ?p=Wiki#$anchor\n\n"
 elif [ -n "$cancel" ]; then
 elif [ -n "$cancel" ]; then
-  echo -n "Location: //${HTTP_HOST}/?p=Wiki#$anchor\n\n"
+  echo -n "Location: ?p=Wiki#$anchor\n\n"
 fi
 fi