Changeset 3751269
- Timestamp:
- 10/17/2026 12:04:52 AM (37 hours ago)
- Location:
- postie/trunk
- Files:
-
- 2 edited
-
GEMINI.md (modified) (1 diff)
-
lib/autolink.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
postie/trunk/GEMINI.md
r3707989 r3751269 136 136 * Run `deploy\deploy.cmd` (or `deploy/deploy.sh` on Unix-like environments) to automatically generate the `readme.txt` and build/package the release assets. 137 137 5. **Source Control**: 138 * Commit all finalized files locally: `git commit -am "Prepare <version> release"`139 * Create a release tag: ` git tag -a<version> -m "Release <version>"`138 * Commit all finalized files: `svn commit -m "Prepare <version> release"` 139 * Create a release tag: `svn copy ^/postie/trunk ^/postie/tags/<version> -m "Release <version>"` 140 140 6. **Public Announcements**: 141 141 * Add a release post on the official Postie site: `http://postieplugin.com/` -
postie/trunk/lib/autolink.php
r3708365 r3751269 148 148 if (preg_match('/^([a-z0-9\-\.\/\-_%~!?=,:;&+*#@\(\)\$°’;]+)/i', $post, $matches)) { 149 149 150 $ url = $hit . $matches[1];151 152 $cursor += strlen($ url) + strlen($pre_hit);150 $raw_url = $hit . $matches[1]; 151 152 $cursor += strlen($raw_url) + strlen($pre_hit); 153 153 $buffer .= $pre_hit; 154 154 155 $url = html_entity_decode($url); 155 $url = html_entity_decode($raw_url); 156 157 if (preg_match('/[\s<>"\\\\\x00-\x1f\x7f]/', $url)) { 158 $buffer .= $raw_url; 159 continue; 160 } 156 161 157 162 # … … 202 207 if (!preg_match("!^(http|https)://{$display_quoted}$!i", $link_url)) { 203 208 204 $currentTagfill .= ' title="' . $link_url. '"';209 $currentTagfill .= ' title="' . htmlspecialchars($link_url, ENT_QUOTES, 'UTF-8') . '"'; 205 210 } 206 211 } … … 237 242 DebugEcho("autolink_do: linkifying $link_url"); 238 243 try { 239 $link_html = apply_filters('postie_bare_link', "<a href=\"{$link_url }\"$currentTagfill>{$display_url_enc}</a>", $link_url, false);244 $link_html = apply_filters('postie_bare_link', "<a href=\"{$link_url_enc}\"$currentTagfill>{$display_url_enc}</a>", $link_url, false); 240 245 } catch (Throwable $exc) { 241 246 EchoError('postie_bare_link: ' . $exc->getMessage() . "\n" . $exc->getTraceAsString()); … … 426 431 $cursor += strlen($pre) + strlen($hit); 427 432 $buffer .= $pre; 428 $buffer .= "<a href=\"mailto:$hit\" $tagfill>$hit</a>"; 433 $hit_enc = htmlspecialchars($hit); 434 $buffer .= "<a href=\"mailto:$hit_enc\" $tagfill>$hit_enc</a>"; 429 435 } 430 436 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)