Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8617
temp_uc.php
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 12:04 AM
2014-11-22 00:04:57 (UTC+0)
Size
357 B
Referenced Files
None
Subscribers
None
temp_uc.php
View Options
<?php
date_default_timezone_set
(
'Europe/Berlin'
);
error_reporting
(
E_ALL
);
$text
=
"text „http://example.com“ Text
\n
"
;
echo
$text
;
$uc
=
"A-Za-z0-9_
\\
/:.,~%
\\
-+&;#?!=()@
\\
xA0-
\\
xFF"
;
$protos
=
"http|https|ftp|mailto|news|gopher"
;
$pat
=
"/(^|[^
\\
[])({$protos}):[{$uc}]+([^{$uc}]|$)/"
;
$text
=
preg_replace
(
$pat
,
"
\\
1
\\
3"
,
$text
);
echo
$text
;
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8135
Default Alt Text
temp_uc.php (357 B)
Attached To
Mode
T34712: External links surrounded by unicode quotation marks break search index
Attached
Detach File
Event Timeline
Log In to Comment