Changeset 110
- Timestamp:
- 03/27/2009 09:31:54 AM (3 years ago)
- Location:
- trunk/WordPress/plugin/transposh
- Files:
-
- 2 edited
-
transposh.php (modified) (4 diffs)
-
transposh_widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r107 r110 144 144 global $home_url, $home_url_quoted, $enable_permalinks_rewrite; 145 145 146 $url = html_entity_decode($url, ENT_NOQUOTES); 147 146 148 if(!$enable_permalinks_rewrite) 147 149 { … … 152 154 if($is_edit) 153 155 { 154 $params = EDIT_PARAM . '=1& amp;';156 $params = EDIT_PARAM . '=1&'; 155 157 156 158 } … … 158 160 if($use_params_only) 159 161 { 160 $params .= LANG_PARAM . "=$lang& amp;";162 $params .= LANG_PARAM . "=$lang&"; 161 163 } 162 164 else … … 179 181 180 182 // more cleanups 183 $url = preg_replace("/&$/", "", $url); 181 184 $url = preg_replace("/\?$/", "", $url); 182 $url = preg_replace("/&$/", "", $url); 185 186 $url = htmlentities($url, ENT_NOQUOTES); 187 183 188 return $url; 184 189 } -
trunk/WordPress/plugin/transposh/transposh_widget.php
r108 r110 45 45 $is_edit = $_POST[EDIT_PARAM]; 46 46 $ref = rewrite_url_lang_param($ref, $lang, $is_edit); 47 48 //ref is generated with html entities encoded, needs to be 49 //decoded when used in the http header (i.e. 302 redirect) 50 $ref = html_entity_decode($ref, ENT_NOQUOTES); 47 51 } 48 52
Note: See TracChangeset
for help on using the changeset viewer.
