This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.1 has been updated
via cd681482f8d37f84a29b18426977a29bf9244b0f (commit)
from becc218b1876f7a11f2d3fdfa8a52564c47237da (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=cd681482f8d37f84a29b18426977a29bf9244b0f
commit cd681482f8d37f84a29b18426977a29bf9244b0f
Author: Franck Villaume <[email protected]>
Date: Fri Dec 29 18:14:37 2017 +0100
util_find_relative_referer: error_msg, warning_msg nor feedback are passed
in the url anymore. remove useless code
diff --git a/src/common/include/utils.php b/src/common/include/utils.php
index 81f3adb..6d245fd 100644
--- a/src/common/include/utils.php
+++ b/src/common/include/utils.php
@@ -1002,13 +1002,6 @@ function util_make_url($path = '', $prefix = '') {
*/
function util_find_relative_referer($url) {
$relative_url =
str_replace(util_make_base_url().normalized_urlprefix(), '', $url);
- //now remove previous feedback, error_msg or warning_msg
- $relative_url = preg_replace('/&error_msg=.*&/', '&', $relative_url);
- $relative_url = preg_replace('/&warning_msg=.*&/', '&', $relative_url);
- $relative_url = preg_replace('/&feedback=.*&/', '&', $relative_url);
- $relative_url = preg_replace('/&error_msg=.*/', '', $relative_url);
- $relative_url = preg_replace('/&warning_msg=.*/', '', $relative_url);
- $relative_url = preg_replace('/&feedback=.*/', '', $relative_url);
return $relative_url;
}
-----------------------------------------------------------------------
Summary of changes:
src/common/include/utils.php | 7 -------
1 file changed, 7 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits